Results 1 to 6 of 6
  1. #1
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618

    Fifo

    A couple of years ago I found this example on the internet. I cannot remember who the author is. The example is great. However, there is one challenge to fix.


    I should be able to solve it, but the past couple hours some brain cells are sleeping.
    1. I add a simple fourth product, and then a purchase transaction on that 4th product.
    2. The last report "Stock Value Report on Fifo basis" should list that newly added product, without doing a sale on that product as well.
    3. If I add a quantity of 50 of the new product, and then capture a sale on a later date of 40, the report returns 10 which is correct.
    4. If I don't capture a sale, it should return 50 as product available. It does not. That must be wrong.
    5. I am sure something small will correct it.
    Attached Files Attached Files

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    You may search for posts by user writeprivate in the forum.
    We discussed FIFO earlier this year.

  3. #3
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    Thank you. I've studied "WritePrivate's" posts and made the change you suggested to him. When a new product is registered, and a purchase is made on that product, no profit would have been made without selling some of the new product. The new product will not and should not appear on 5 of those reports, (it seems to work correct in that db) the new product should only appear on the last report. I assume the solution for my challenge is for starters that qryTotalSales should list the new product with zero sales, since there are no sales on that product. Currently qryTotalSales does not list products with no sales, and that leads to the error I experience. I will have a cup of coffee, maybe my sleeping brain cells will wake up soon.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Not sure I am following: Why would a Product with No sales be in qryTotalSales?

    I took my latest database; registered Product Perfac; purchased 4 Perfac @ $ 20/ea.

    With QryStockAvailableWithAndWithoutSales, I get the following (I added the colour)

    BatchNo PDate ProductDesc Purchased Qty PPrice AvailableQty StockValue
    1003 03-Jan-14 APPLE_PFRD 300 14 4 56
    3456 19-Jan-23 TEST_OVERSELL 3 17 1 17
    10004 20-Feb-08 PRODUCT-A 200 55 100 5500
    10005 01-Mar-08 PRODUCT-A 500 60 500 30000
    20004 23-Feb-08 PRODUCT-B 250 135 100 13500
    20005 11-Mar-08 PRODUCT-B 1000 140 1000 140000
    30003 01-Feb-08 PRODUCT-C 1700 260 669 173940
    30004 12-Mar-08 PRODUCT-C 2000 270 2000 540000
    30005 06-Feb-23 TEST_NOSALES 20 75 10 750
    30006
    02-May-23 Perfac 4 20 4 80

    Here is png of the last report @2-May-23

    Attachment 50186

    Current Gross Availability

    Click image for larger version. 

Name:	FifoGrossAvail 2023-05-02 130015.png 
Views:	15 
Size:	8.5 KB 
ID:	50188

    Product/Sales/Purchases

    Attachment 50187

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

    Fifo

    Perfac er al.

    Attached as zip is the latest database I have worked related Fifo Batch Allocation.
    Current to 02-May-23 1:15 PM EDT
    Attached Files Attached Files

  6. #6
    Perfac's Avatar
    Perfac is offline Expert
    Windows 10 Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    Thank you very much. It seems good. I will work with it and reply if any other issue.

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

Similar Threads

  1. Fifo
    By DMol15 in forum Access
    Replies: 4
    Last Post: 06-14-2022, 04:51 PM
  2. FIFO & LIFO inventory system
    By Hareshvalani in forum Access
    Replies: 5
    Last Post: 02-04-2021, 06:33 AM
  3. FIFO Inventory
    By Analogkid in forum Access
    Replies: 21
    Last Post: 12-15-2016, 03:35 PM
  4. inventory fifo db
    By betna in forum Access
    Replies: 2
    Last Post: 04-18-2013, 03:37 PM
  5. Fifo
    By Firefighter22 in forum Access
    Replies: 1
    Last Post: 08-29-2011, 01:48 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