Results 1 to 5 of 5
  1. #1
    Batselot is offline Novice
    Windows 8 Access 2016
    Join Date
    Aug 2018
    Posts
    14

    Getting Sums


    Hi there guys, I just joined the forum to ask a question.I am beginner to the access program and I hope I can learn more by looking at more questions.
    So my problem here is I created a query with over 20 lines.And at the end of each 4th line I want to see the sum of the 4 lines.I want the same done for the next 4 as well etc.For better demonstration I have put a picture attached.Thanks a lot in advance,
    P.S I am sorry if this question is in the wrong section.
    Attached Thumbnails Attached Thumbnails Asking To Bruce.jpg  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    You cannot do this in access queries.
    but in a report you can sum the total of a group. (But not random N lines)
    You CAN have running sum.

  3. #3
    Batselot is offline Novice
    Windows 8 Access 2016
    Join Date
    Aug 2018
    Posts
    14
    I tried it with the report but as you have just said,I got the total number.I need the access to calculate 288 for me though.Do you know how that can be done in reports?

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Insert group bands. This allows you to total on a group (say...employee, or client)
    the amt field in the Group footer would be: =sum(Amt)

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Why 4 lines? As Ranman suggests, what data can be used to associate records in groups of 4? Use report Sorting & Grouping design.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Query help with Sums
    By dhogan444 in forum Queries
    Replies: 1
    Last Post: 08-10-2012, 02:19 PM
  2. Sum of Sums?
    By Chameleon in forum Reports
    Replies: 1
    Last Post: 03-14-2012, 06:32 PM
  3. Incorrect Sums
    By Azyrus in forum Reports
    Replies: 6
    Last Post: 06-26-2011, 04:27 PM
  4. Excessive 'sums'
    By Captain Database ...!! in forum Queries
    Replies: 3
    Last Post: 06-23-2011, 02:37 PM
  5. How do I sum multiple sums?
    By RobRay in forum Reports
    Replies: 6
    Last Post: 11-26-2010, 08:48 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