Guest_imported
New member
- Jan 1, 1970
- 0
Thanks for your help
I have a small item inventory system that I have constructed that allows me to - after a few steps - calculate true inventory by product, by subtracting the total number of units sold of product X from total units added to inventory of product X (field in a query called "TrueInventory". These calculations exist in their own tables ,queries and forms.
What I want to do is on the form that allows the operator to sell units, when she pressed the button to process, some type of function will go and check and see if:
1. There is enough inventory of that item in the "TrueINventory" field to process the sale(Subtracting the number of ordered widgets minus the number of "TrueINventory" widgets does not result in a negative number). If there isn't enough inventory, the record would not be processed and a dialogue box would appear
All the inventory items have a unique number, so matching shouldn't be a probem, but I don't know how to write VBA well enough to have the DB do this checking behind the scenes on the spot.
Thanks for any thoughts you may have
Tomas
I have a small item inventory system that I have constructed that allows me to - after a few steps - calculate true inventory by product, by subtracting the total number of units sold of product X from total units added to inventory of product X (field in a query called "TrueInventory". These calculations exist in their own tables ,queries and forms.
What I want to do is on the form that allows the operator to sell units, when she pressed the button to process, some type of function will go and check and see if:
1. There is enough inventory of that item in the "TrueINventory" field to process the sale(Subtracting the number of ordered widgets minus the number of "TrueINventory" widgets does not result in a negative number). If there isn't enough inventory, the record would not be processed and a dialogue box would appear
All the inventory items have a unique number, so matching shouldn't be a probem, but I don't know how to write VBA well enough to have the DB do this checking behind the scenes on the spot.
Thanks for any thoughts you may have
Tomas