Results 1 to 6 of 6
  1. #1
    lololthis is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Posts
    3

    Running total

    Hi All,



    I'm relatively new to Access and am trying to replace an Excel formula that I have with an Access equivalent. Here is my situation:

    I have orders with a PO#, Part#, Qty and Due Date. I would like to keep one line per PO# and have a column which sums Qty for all orders for the part which have an earlier due date.

    The idea is to have a column which shows how many units will be coming in before that order's due date. Any idea on how I can do this?

    Thanks!

  2. #2
    khalid's Avatar
    khalid is offline MS-Access Developer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2010
    Location
    Kuwait
    Posts
    244
    Hi,
    This can be achieved by calculating the Qty for all the orders using a query with grouping on PO#, Part# and calculating the Qty field with sum aggregate function.

    Here is how to Count data by using a query:

  3. #3
    lololthis is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Posts
    3
    The problem is that I only want to sum Qty when due date is < due date on that line

  4. #4
    khalid's Avatar
    khalid is offline MS-Access Developer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2010
    Location
    Kuwait
    Posts
    244
    You can use the criteria in the query grid under the [due date] column to < [due date]
    did you create a query to sum the Qty?

  5. #5
    lololthis is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2011
    Posts
    3
    I think that I didn't explain this well enough. Let's say that there are 10,000 orders for 4,000 different parts. a given part has 5 different orders of quantity 1 each. For the order with the earliest due date, the "previous order sum" column should be 0, the next order will have a 1, the following order a 2, etc. This should work even if the quantities are not 1 each.

    Ideas?

  6. #6
    khalid's Avatar
    khalid is offline MS-Access Developer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2010
    Location
    Kuwait
    Posts
    244
    no idea, may be not understood fully. You may be asking about the re-order level?

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

Similar Threads

  1. Replies: 2
    Last Post: 05-19-2011, 04:53 PM
  2. Running Total in Subform
    By Scorpio11 in forum Forms
    Replies: 19
    Last Post: 07-03-2010, 05:44 PM
  3. Using running total in query to create graphs
    By maggioant in forum Queries
    Replies: 4
    Last Post: 10-02-2009, 05:58 AM
  4. Creating a Daily Running Total Query
    By seraph in forum Queries
    Replies: 0
    Last Post: 08-15-2009, 12:11 AM
  5. not correct running total in group
    By cmk in forum Reports
    Replies: 1
    Last Post: 12-06-2006, 05:56 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