Results 1 to 2 of 2
  1. #1
    mrmims is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2013
    Posts
    53

    Sum on Quantity added since last date?


    Hello,

    I have two tables. First is "TBL_Inventory_Count" and second "TBL_Inventory"

    In TBL_Inventory_Count I have a "CountDate".

    In TBL_Inventory I have "AddDate" and "QuantityReceived"

    I want to run a query which will sum the multiple "QuantityReceived" of a record which has been added to "TBL_Inventory" since the last Inventory "CountDate".

    Sum of QuantityReceived since Max([TBL_Iventory_Count].[CountDate])

    I feel like I am fairly adept at Access, but for the love all things holy I am drawing a complete blank.

    Thank you for any all help!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,642
    Yes, this might not be simple.

    Could have user select the last inventory date in a combobox and reference that value as filter criteria parameter in a query. That's the easy way.

    If you want a query to find the last inventory date, that gets complicated. Probably involve subquery or domain aggregate functions.
    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. Replies: 1
    Last Post: 10-22-2014, 11:20 AM
  2. Replies: 3
    Last Post: 09-22-2014, 10:54 AM
  3. Sort records by date added
    By gmaster in forum Programming
    Replies: 8
    Last Post: 06-12-2014, 01:21 AM
  4. Adding the Date & Time record added
    By jo15765 in forum Access
    Replies: 2
    Last Post: 11-26-2010, 11:31 PM
  5. Replies: 4
    Last Post: 01-29-2009, 02:43 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