Adding multiple fields with ASP & SQL
Hi there --
I have a database that holds subscription info. Based on the time of payment and the length of subscription, I calculate an accrued monthly amount, assign that amount to a variable, and assign it to a month on a Web page.
I want to tally up the totals for the columns that result. That means I'll need to add up several fields per record, and also add up all the records - like this:
Customer 1: Field 1 + Field 2 + Field 3
Customer 2: Field 1 + Field 2 + Field 3
... and so on - I want all those fields added together.
I can get what looks like the last record's fields summed by using <% = (Field1) + (Field2) + (Field3) %> but it doesn't tally up all the records.
It's possible to do, isn't it? Help?
Thanks!