I have a subform that runs code to subtract from inventory items sold. The fields are;
ProductID 'Name of Product
Quantity 'Quantity of Product
UnitPrice 'Price of Product
Discount 'Discount
Extended Price 'Extended Price with discount applied
Status 'Default is None and other value is Allocated.
The code is run off the ProductID
How can I then prevent a user from posting this amount twice?
The user can add items and choose to either post them now or later.
The form is a continuous form.
It along with subtracting those items from inventory sets the Status to Allocated from None, which is the default.
What if the user needs to edit the record, what then? I assume some kine of Before Update Event !
Also, not sure if this helps but Primary Key is named OrderDetailID