Hi, I am currently creating a database to keep track of stock.
I am new to access/the whole database world and would like to ask for some help...
I am have a ProductInfo table. This includes 'p_productID, p_name....p_sellingprice, p_restocklevel and p_numberinstock' (among others) and customer/staff tables with things such as name, address etc.
I was hoping to do the following...
On a 'transaction' form, I wanted the customer and staff details on the form, with 'product info' as a subform. The member of staff then fills out the form and enters the products that the customer is buying.
Firstly...
I want to have a 'quantity' field on the transaction form so if the customers buying, say, two items, then '2' will be put into this field, then the 'subtotal' field will calculate a subtotal by doing 'sellingprice'*'quantity'.
I have tried to do this by using an unbound textbox(I know a problem i need help with later too!) however when I enter a quantity for the first item that they are buying, it changes the rest of the items to the same quantity value and will not let me change it.
How would I go about making the quantity individual for each product? And how do I 'bound' a textbox to a certain record?
Secondly...
I want it so that after an order quantity has been inputted, it updates the 'productInfo' table and decreases the stock level by the quantity ordered for that particular product.
I hope someone understands this
PLEASE help!
lizi
I am new to access/the whole database world and would like to ask for some help...
I am have a ProductInfo table. This includes 'p_productID, p_name....p_sellingprice, p_restocklevel and p_numberinstock' (among others) and customer/staff tables with things such as name, address etc.
I was hoping to do the following...
On a 'transaction' form, I wanted the customer and staff details on the form, with 'product info' as a subform. The member of staff then fills out the form and enters the products that the customer is buying.
Firstly...
I want to have a 'quantity' field on the transaction form so if the customers buying, say, two items, then '2' will be put into this field, then the 'subtotal' field will calculate a subtotal by doing 'sellingprice'*'quantity'.
I have tried to do this by using an unbound textbox(I know a problem i need help with later too!) however when I enter a quantity for the first item that they are buying, it changes the rest of the items to the same quantity value and will not let me change it.
How would I go about making the quantity individual for each product? And how do I 'bound' a textbox to a certain record?
Secondly...
I want it so that after an order quantity has been inputted, it updates the 'productInfo' table and decreases the stock level by the quantity ordered for that particular product.
I hope someone understands this
PLEASE help!
lizi