update query question

  • Thread starter Thread starter lorac
  • Start date Start date
L

lorac

Guest
Is there anyway to run an update query and only one record is updated?

for example:

I have a product table that contain the quantity of plants on hand.

when there is a sale in the sales table the quantity in the product table should reduce.

When i run the update query however all records in the sales table are subtracted from the quanity field in the product table.

please help
thanks in advance;)
 
It sounds like your criteria is not set. Can you post the SQL for the query?

GumbyD
 
sure

UPDATE [Purchases Invoice Table] INNER JOIN [Product table] ON [Purchases Invoice Table].PNo = [Product table].PNO SET [Product table].QOH = [QOH]+[Quantity];
 

Users who are viewing this thread

Back
Top Bottom