Results 1 to 2 of 2
  1. #1
    meright is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    1

    Need to sum up two columns in Access 2007

    Hi, I'm new to Access programming and I would really appreciate some help on a project I've been working on.



    So far I've been doing better than I expected but halfway through the programming I stumbled upon something I don't know how to do.

    I have two columns that sum up their own objects (A and B columns) and display it in the last row. now I want a column that sums up the objects of A and B columns and also at the last row sums up all the sums of all A and B cells.

    You can see the demonstration of what I mean in the image attached.

    I'd appreciate it if anyone could help me out with this.

    Thanks!

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    The sum would be:

    =Sum(Nz([A],0)) - Sum(Nz([B],0))

    You should use the Nz function on your other calculations too, in case of a null, it won't return a null then.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 06-18-2011, 09:55 AM
  2. Replies: 1
    Last Post: 03-09-2010, 10:23 AM
  3. Replies: 6
    Last Post: 12-01-2009, 11:59 AM
  4. Replies: 0
    Last Post: 11-17-2009, 02:35 PM
  5. Replies: 0
    Last Post: 04-29-2009, 04:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums