Hi guys
I've honestly been on this topic for a few days and can't figure it out :banghead: I have searched this forum and google for hours on end without finding an answer. So if someone could point me in the right direction or help me here that would be awesome
The problem
I have a form which has a list of stock we have available to sell. I can then create an invoice and put in the relevant details. I then can select a product and it will add it to the invoice (which is in the form of a subform). Then the user confirms the quantity of each product. This is where the problems start....
I want an update query which will subtract the quantity from the overall stock level and give me the new stock level. This is easy to do if the invoice is for only 1 product. But I it doesn't work if there is more than one product in the invoice. If the first product has a quantity of 2 being bought, it will subtract 2 for every product.
I hope this makes sense. Thanks in advance
Rhys
I've honestly been on this topic for a few days and can't figure it out :banghead: I have searched this forum and google for hours on end without finding an answer. So if someone could point me in the right direction or help me here that would be awesome

The problem
I have a form which has a list of stock we have available to sell. I can then create an invoice and put in the relevant details. I then can select a product and it will add it to the invoice (which is in the form of a subform). Then the user confirms the quantity of each product. This is where the problems start....
I want an update query which will subtract the quantity from the overall stock level and give me the new stock level. This is easy to do if the invoice is for only 1 product. But I it doesn't work if there is more than one product in the invoice. If the first product has a quantity of 2 being bought, it will subtract 2 for every product.
I hope this makes sense. Thanks in advance
Rhys