Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum Of Recordset

Status
Not open for further replies.

tekyge

Programmer
Dec 11, 2005
125
US
Is there any way to have the asp page calulate the sum of a field like you do in VB? Example in vb you would
=sum([paid]) but in asp
<%= FormatCurrency(rs("Paid")) %>
how do you get asp to calulate correct?
 
Or perhaps update cumulative variables after each row in a report. Then at the end of the report show these variables as the totals. The same concept can also be used for group totals by setting the cumulative variables back to 0 after each group. Example: InvSubtotalCum = InvSubtotalCum + InvSubtotal

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
Access Database Sample, Web Database Sample, ASP Design Tips
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top