G
Guest
I have an inventory table that I would like to decrement or increment the
quantity in stock field as they are entered into a supplies table using VBA
code. Here's a sample of the inventory table data:
ItemNbr InvID DateRecd QtyRecd QtyInstock Cost
10 67 3/9/1999 57 15 $8.96
10 80 4/28/1999 50 50 $8.96
Would anyone be able to help me with a loop such that if 16 units of ItemNbr
10 were taken, the QtyInStock for InvID 67 would be updated to 0 and the
QtyInStock for InvID 80 would be updated to 49? It should take from the
oldest DateRecd first (FIFO).
Thanks a lot for any help. I am using Access 2007.
quantity in stock field as they are entered into a supplies table using VBA
code. Here's a sample of the inventory table data:
ItemNbr InvID DateRecd QtyRecd QtyInstock Cost
10 67 3/9/1999 57 15 $8.96
10 80 4/28/1999 50 50 $8.96
Would anyone be able to help me with a loop such that if 16 units of ItemNbr
10 were taken, the QtyInStock for InvID 67 would be updated to 0 and the
QtyInStock for InvID 80 would be updated to 49? It should take from the
oldest DateRecd first (FIFO).
Thanks a lot for any help. I am using Access 2007.