I have a "Purchase" form and a subform in it. When I delete record(s), I want the stock quantity of the related product(s) in the "Product" table to be deducted the same quantity as what was stored on the "Quantity" field in the subform. With this way, the stock in the "Product" table is always updated whenever I delete the record(s).
I managed to do this by using an update query with a criteria on the "Product Id" pointed to the "Product Id" in the subform which is trigerred at the OnDelete event.
The problem is when I select more than one record at once to delete, the update query can only update one record. Does any body know how solve this?
I managed to do this by using an update query with a criteria on the "Product Id" pointed to the "Product Id" in the subform which is trigerred at the OnDelete event.
The problem is when I select more than one record at once to delete, the update query can only update one record. Does any body know how solve this?