I'm using MS Access 2007. I have a query called qryUPDATESTOCKS
that reduces the stocks from table products based from the quantity from table order.
Query:
UPDATE tblPRODUCTS SET tblPRODUCTS.Stock = tblPRODUCTS.Stock-tblORDER.Quantity
WHERE tblORDER.ProductID=tblPRODUCTS.ProductID;
To run this query when an order is saved, I added an action OpenQuery
into my save button that runs the query.
But when I click the save order button, a dialog box appears saying "Enter Parameter Value". How do I prevent it from popping up?