CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 i want to calaculate the current balance in a grid, i'm getting error when i applied the below code in Before show

Print topic Send  topic

Author Message
okonkwo

Posts: 3
Posted: 02/06/2018, 5:17 AM Quote message

Function DailyTrans_Detail_Bal_BeforeShow(Sender) 'DailyTrans_Detail_Bal_BeforeShow @40-CD057C09

'Custom Code @44-73254650
' -------------------------
SELECT tsd, trans_Date, dailytrans.Income.Value, dailytrans.expenses.Value,
SUM(dailytrans.Income.Value - dailytrans.expenses.Value) OVER(ORDER BY tsd
ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
AS dailytrans.bal.Value
FROM dailytrans
' -------------------------
'End Custom Code
View profile  Send private message
Oper


Posts: 1180
Posted: 03/28/2018, 4:50 AM Quote message

you can not do that. That is a SQL sentence
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message

Add new topic Reply to topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.