hi and thanks alcapps for the idea, abit of background the database itself: i purchase goods from 3 suppliers, the quantity is stored in the products table. for example if i purchased 10 items on the 2 feb 2013 and only sold 8 to customers i have 2 remaining, hence the next purchase will 8 and not 10. so i have done what alcapps was mentioned above by adding another query.
(qtyonhand+qtyPurchased)-qtySold
This gives me
is there a reason why gum bubblem and gomets do not have a number in the stock? is it because i did not purchase any from the supplier??
i have a report that reads\is based on the products table, this shows the amount in stock (at hand)
Ill try (and error) the next bit (i understand its not advised) that is to use an update query to write the new results from the query above into the products table. This is so the next purchase order and quantity at hand can be added and then subtracted from the amount sold.
I dont understand why and how "There is a chance the UPDATE action could be accidentally repeated or forgotten" what if i run this query once the stock report is ran, it will only update once?
many thanks to all