Results 1 to 3 of 3
  1. #1
    dtoxic's Avatar
    dtoxic is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2017
    Posts
    31

    Adding (sum) two or more rows in the Same Field.

    Hello AccessForum,

    I don't know if this is the right thread I am asking the Question in. Guys, is there a way to add (sum) records of two or more rows in the same field? See the attached Image below.
    Click image for larger version. 

Name:	Capture.PNG 
Views:	8 
Size:	20.1 KB 
ID:	28235

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Well, you can do Aggregate (Totals) queries, which group records by certain fields, and then take mathematical functions of other fields (like SUM, COUNT, MAX, MIN, etc).
    So if you are simply just trying to sum up the Cash Sale and Total Amount fields for each Fuel Type, you would create an Aggregate Query where you Group on FuelType and Sum the Cash Sale and Total Amount fields.
    Note that you cannot add any of the other fields in this query, as every field in an Aggregate Query must either be included in the Grouping, or have an Aggregate function applied to it.

  3. #3
    dtoxic's Avatar
    dtoxic is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Apr 2017
    Posts
    31
    Thanks Joe, Let me try this. I will drop a reply here if I face any difficulties.

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

Similar Threads

  1. Replies: 3
    Last Post: 07-01-2016, 08:11 AM
  2. Replies: 3
    Last Post: 03-29-2014, 01:05 PM
  3. moving and adding rows of data
    By clmunson in forum Forms
    Replies: 4
    Last Post: 07-25-2012, 02:29 PM
  4. Help with adding rows (Complex!)
    By ohthesilhouettes in forum Queries
    Replies: 4
    Last Post: 09-26-2011, 10:15 AM
  5. Adding rows on cross-tab query report
    By KahluaFawn in forum Reports
    Replies: 2
    Last Post: 02-18-2009, 10:09 AM

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