Results 1 to 3 of 3
  1. #1
    element32d is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    24

    Accumulation Over Time

    Hello,

    I have a relatively simple idea that I'm not sure how to do in Access. I uploaded a sample database for reference.

    I have a query gathering information from the "Order Entry" table. So right now there's an entry for 5000 of "01234" due 6/15/2013 and another 5000 of "01234" due 6/20/2013. In the query it is showing both of them, but what I want it to do is accumulate every order entry. So for 6/20/2013 it should show "10,000" in the order quantity field.



    If this can't happen easily, the least it could do or maybe even a better solution would be to let 6/20/2013's order show up because there's a short order for 6/15/2013. This doesn't happen for some orders because if say, there's an order for 80,000 due 6/15 and current inventory is 75,000, and another order for 30,000 is due 6/20/2013, that won't show up even though technically it should because it's still short since that first order will deplete the inventory to less than 30,000.

    Thanks!
    Attached Files Attached Files

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    You're talking about a running sum.

    Here's how you do it on a query:
    http://support.microsoft.com/kb/290136

    Here's a method to do it on a report (if you're using a formula instead of just a number):
    http://www.blueclaw-db.com/access_re...unning_sum.htm

    Here's a method to do it on a form:
    http://support.microsoft.com/kb/210338

  3. #3
    element32d is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2012
    Posts
    24
    Quote Originally Posted by rpeare View Post
    You're talking about a running sum.

    Here's how you do it on a query:
    http://support.microsoft.com/kb/290136

    Here's a method to do it on a report (if you're using a formula instead of just a number):
    http://www.blueclaw-db.com/access_re...unning_sum.htm

    Here's a method to do it on a form:
    http://support.microsoft.com/kb/210338
    So I can do this in my situation, where there will be different part #'s in the same query and it's running a total for each part # individually?

    EDIT: I attached my attempt. Any insight on why it's not working?
    Attached Files Attached Files

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

Similar Threads

  1. Replies: 42
    Last Post: 03-01-2013, 06:58 AM
  2. Replies: 8
    Last Post: 08-24-2012, 01:54 AM
  3. Replies: 1
    Last Post: 08-14-2012, 03:22 AM
  4. Replies: 1
    Last Post: 02-28-2012, 09:16 PM
  5. Replies: 7
    Last Post: 08-04-2011, 07:49 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