Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Access (https://www.askmehelpdesk.com/forumdisplay.php?f=441)
-   -   Update UnitsInStock Field in Northwind.mdb (https://www.askmehelpdesk.com/showthread.php?t=99550)

  • Jun 8, 2007, 03:15 AM
    jimbo89
    Update UnitsInStock Field in Northwind.mdb
    I have written and run an update query in Northwind. It updates the unitsinstock field of the products table. What I want to do is update this field based on the qty ordered in a specific order not every order. Eg. I have 10 products in stock, someone orders 3 - this gives me 7 in stock after I run the update query. Another order wants 3 of the same product and after running the query again, it subtracts these 3 products AND the previous 3 again leaving me with 1 product when I should actually have 4. :mad: How can I attach this query to the orders form so it only runs according that particular order and not all previous orders? Thanks

  • All times are GMT -7. The time now is 09:57 PM.