Hi,
I have this main form frmOrders where you have a lisbox from which you can choose products. Once you have choosen a product you need to click on a button (also on main form) to confirm this and it should be displayed directly in the subform. All you need to do then is fill in an amount (of products) on the subform.
The main form is mainly based on the tables tblOrders(OrderId, date) and tblCustomers(customerid, name).
The subform is based on the tables tblOrderlines(productid) and tblProducts(productname).
These are the relationships:
tblCustomers 1-n tblOrders
tblOrders 1-n tblOrderlines
tblProducts 1-n tblOrderlines
Could someone please help me out a bit, as I have been messing up things a little. Should I put code behind the confirm button to insert a product into tblOrderlines, or not?
Thanks in advance,
dj.
I have this main form frmOrders where you have a lisbox from which you can choose products. Once you have choosen a product you need to click on a button (also on main form) to confirm this and it should be displayed directly in the subform. All you need to do then is fill in an amount (of products) on the subform.
The main form is mainly based on the tables tblOrders(OrderId, date) and tblCustomers(customerid, name).
The subform is based on the tables tblOrderlines(productid) and tblProducts(productname).
These are the relationships:
tblCustomers 1-n tblOrders
tblOrders 1-n tblOrderlines
tblProducts 1-n tblOrderlines
Could someone please help me out a bit, as I have been messing up things a little. Should I put code behind the confirm button to insert a product into tblOrderlines, or not?
Thanks in advance,
dj.