Results 1 to 2 of 2
  1. #1
    williamr is offline Novice
    Windows 10 Office 365
    Join Date
    Feb 2022
    Posts
    4

    Sum Last 2 records

    Hi, What I need to do is sort a database by record ID so that the most current record is at the top, sum a field in that record and the record beneath it, skip 4 records backwards and start over.



    Thank You Much!

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    provide some example data and the result required from your example data since your description is not making sense. what happens to rows 3 and 4? where do you want the result?

    Otherwise best I can suggest is use the TOP 2 predicate in a query ordering by ID desc then sum that

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

Similar Threads

  1. Replies: 3
    Last Post: 10-06-2020, 02:09 AM
  2. Replies: 1
    Last Post: 12-09-2016, 08:58 AM
  3. Replies: 1
    Last Post: 04-06-2016, 09:26 AM
  4. Replies: 4
    Last Post: 03-29-2014, 01:29 AM
  5. Replies: 1
    Last Post: 01-24-2013, 05:50 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