I have a DB with some tables but only 3 of them are important for this question. I have an Order table, an Order_details table and a Products table.
Fields :
Order : ID, Order_date, Payment_mode
Order_details : Order_key, Order_ID, Product_ID, Quantity, Discount
Products : Product_ID, Description, Price
I want to create a form that does a couple of things.
1- When you open it, it creates a new record (because you are creating a new order). I think I have that done with :
Private Sub Form_Load()
DoCmd.GoToRecord acDataForm, "order_form", acNewRec
End Sub
2- Basically the top fields of the Form are the fields from the Order table because I want to see the order # and the date.
3- I want to have a list of Products added to the order for which the Order_ID would be the ID in the Order table.
I managed to create the form to generate new orders but can't seem to be able to build the list of products that would add themselves to the Order_details table as you enter them. It doesn't seem like it's a very complicated task but something is missing somewhere I can't seem to find it.
For any details you can ask I will answer via PM or here.
Thanks alot for your time.