Hey i'm new to the forum and the whole VBA coding and have come accross a problem. Im using a database to manage the transactions of a software retailer.
Basically it concerns two tables:
tblStock(Stock_ID, Product_Name, Manufacturer, Price, Qty_Stock)
and a table tblOrder which contains the details for every order made. Every order contains one product only. In this table there's a field "Quantity" which specifies the number of copies of a particular piece of software that is ordered.
My problem is that i want the Qty_Stock field in the STOCK table to update itself every time an order is made i.e. When a button, say, "Confirm Order" is clicked (I have already designed the appropriate forms) the value of Quantity is subtracted from Qty_Stock for the appropriate product.
I would appreciate it if anyone can help me in coding this problem.
Thanks in advance
Basically it concerns two tables:
tblStock(Stock_ID, Product_Name, Manufacturer, Price, Qty_Stock)
and a table tblOrder which contains the details for every order made. Every order contains one product only. In this table there's a field "Quantity" which specifies the number of copies of a particular piece of software that is ordered.
My problem is that i want the Qty_Stock field in the STOCK table to update itself every time an order is made i.e. When a button, say, "Confirm Order" is clicked (I have already designed the appropriate forms) the value of Quantity is subtracted from Qty_Stock for the appropriate product.
I would appreciate it if anyone can help me in coding this problem.
Thanks in advance
