|
-
Feb 6th, 2000, 10:19 PM
#1
Thread Starter
Junior Member
I have a database that has a Feildname of "CustomerTotals". I need to code my program to get the entire column of "CustomerTotals" and add them all together and display their total as lblTotal.Caption. How do I add the entire "CustomerTotals" values together?
It shouldn't be that hard, I wouldn't think, yet I do not know the proper coding to make this possible.
I thank thee for any help,
Darkcloud
-
Feb 6th, 2000, 10:26 PM
#2
Lively Member
Sorry I'm not Aaron Young, but you can try a select statement that looks like this:
Code:
Select GrandTotal = SUM(CustomerTotals) from myTableName
This will return the sum of all values in this column.
[This message has been edited by bsmith (edited 02-07-2000).]
-
Feb 6th, 2000, 10:36 PM
#3
Thread Starter
Junior Member
bsmith,
Thank you very much, I appreciate it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|