FurryGorilla
Technical User
Hi all,
Hopefully you can help. I have a form for a customer order which includes a subform (in datasheet view) which displays the items and their respective quantities that are on the current order. The user is able to delete items from the order by highlighting the record in the subform and deleting it as normal.
If the item on that order was the last in stock then the status of the stock item would be 'out of stock', however if they were deleting the item from the order then there would be items available to sell, i.e. the status would change to 'in stock'.
The only thing is, I do not know where to place the query which would change the status of this. I have tried it by putting it in the Form_Delete() section but this results in a Jet Database error message as I am updating the record currently open.
Is there a way to pass the StockID from the subform to a query once the stock item has been deleted from the order? Any help would be much appreciated.
Thanks in advance
Chris ____________________________
Have you seen my munkee?![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)
Hopefully you can help. I have a form for a customer order which includes a subform (in datasheet view) which displays the items and their respective quantities that are on the current order. The user is able to delete items from the order by highlighting the record in the subform and deleting it as normal.
If the item on that order was the last in stock then the status of the stock item would be 'out of stock', however if they were deleting the item from the order then there would be items available to sell, i.e. the status would change to 'in stock'.
The only thing is, I do not know where to place the query which would change the status of this. I have tried it by putting it in the Form_Delete() section but this results in a Jet Database error message as I am updating the record currently open.
Is there a way to pass the StockID from the subform to a query once the stock item has been deleted from the order? Any help would be much appreciated.
Thanks in advance
Chris ____________________________
Have you seen my munkee?
![[monkey] [monkey] [monkey]](/data/assets/smilies/monkey.gif)