Results 1 to 3 of 3

Thread: Aaron Young, you must know the answer... :-)

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    25

    Post

    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

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Location
    Springfield, IL
    Posts
    124

    Post

    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).]

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    25

    Post

    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
  •  



Click Here to Expand Forum to Full Width