M
mattc66 via AccessMonster.com
I need some help. I need to match order details to our inventory and
determine what order can be filled based on our current stock.
Example:
OrderDetail
OrderID ProductID OrdQty
1000 901001 5
1000 901002 1
1000 901005 2
1002 901001 4
1002 901002 3
Inventory
ProductID OnHandQty
901001 8
901002 4
901005 5
This is a very short example of the data I have to match. I wanted to do it
with a query. From what I have been advised is I need to use code and loop
through the orders and the product stock to determined which order can ship
and which ones cannot.
Can anyone give me some help with the code?
Thanks
Matt
determine what order can be filled based on our current stock.
Example:
OrderDetail
OrderID ProductID OrdQty
1000 901001 5
1000 901002 1
1000 901005 2
1002 901001 4
1002 901002 3
Inventory
ProductID OnHandQty
901001 8
901002 4
901005 5
This is a very short example of the data I have to match. I wanted to do it
with a query. From what I have been advised is I need to use code and loop
through the orders and the product stock to determined which order can ship
and which ones cannot.
Can anyone give me some help with the code?
Thanks
Matt