Results 1 to 3 of 3
  1. #1
    illusionek is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Sep 2014
    Posts
    1

    how to substract sales from stock with oldest date first and then move to next date?

    Hello,

    I have attached a sample of a database, which hopefully illustrates my problem well.

    Table 1 has all the items I am trying to sell with sell by date after which I cannot sell this item. Then in Table 2 I


    have forecasted sales. So now I am trying to calculate stock consumption to see if I will be left with any stock that I cannot sell.

    So now somehow I need to deduct sales forecast from my stock holding but it needs to go by date i.e. consume all stock for Item 1 with date 16/09 before moving to Item 1 with sale by date 23/09.

    So based on the attached example, I can see that on 16/09 I will consume only 5 cases from sell by date 16/09 and another sale is
    18/09. So that would give me information that I will be left with 95 items dated 16/09, which I cannot sell because they will be out of date.

    Ideally I would like also to include the logic that if Item is out of date it would move to the next sell by date.

    So in this case sale of Item 1 forecasted for 18/09 (94) would consume the whole stock (50) with date 23/09 and another 44 from date 01/10

    For Item 2 I can see that units with Sell by date 30/09 will be consumed on 25/09 and I will start taking stock from next sell by date
    which is 14/10.

    I hope all this makes sense and someone would be able to help me out.

    I have also attached a copy of Excel spreadsheet, which illustrates what I am trying to achieve. It is updated manually at the moment ;(
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Bing: Access inventory database first in first out

    Here is one discussion

    http://www.utteraccess.com/forum/FIF...-t1410760.html

    And a link referenced in that thread http://www.allenbrowne.com/AppInventory.html

    However, unless you are trying to value the inventory, why does the date matter? Sum product in and sum product out, the difference is balance on hand.
    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.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I agree with June7. You should research FIFO Inventory Control/Management

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

Similar Threads

  1. Replies: 2
    Last Post: 12-08-2012, 10:01 AM
  2. Query finding sales by date
    By v!ctor in forum Queries
    Replies: 9
    Last Post: 10-14-2012, 04:41 PM
  3. minus date wise sales a=n?
    By alex_raju in forum Access
    Replies: 1
    Last Post: 07-30-2011, 01:23 PM
  4. Replies: 5
    Last Post: 06-30-2011, 02:24 AM
  5. Replies: 3
    Last Post: 05-03-2011, 01:36 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