garywood84
Registered User.
- Local time
- Today, 20:28
- Joined
- Apr 12, 2006
- Messages
- 168
I'm building an order entry system. tblOrders contains one record for every order, and lines within each order are stored in tblOrderDetails, related to tblOrders by the OrderID.
I've created a form to allow order entry (frmOrders). The form is based on tblOrders, and displays related records from tblOrderDetails in a subform.
I don't want users to add items to orders by typing them into this subform, so have set it to not allow additions. Instead, I want there to be a button above the subform which says "Add Line". This should bring up a form (frmAddOrderLine) on which the user can enter the line they want to add, and when then click OK, they'll see the original form again, with a new line in the order.
I've created all the required forms, but when frmAddOrderLine is opened, from the button on frmOrders, the OrderID field is blank - where this needs to be the OrderID from the active record on frmOrders. Can anyone tell me how I can do this?
Thanks,
Gary
I've created a form to allow order entry (frmOrders). The form is based on tblOrders, and displays related records from tblOrderDetails in a subform.
I don't want users to add items to orders by typing them into this subform, so have set it to not allow additions. Instead, I want there to be a button above the subform which says "Add Line". This should bring up a form (frmAddOrderLine) on which the user can enter the line they want to add, and when then click OK, they'll see the original form again, with a new line in the order.
I've created all the required forms, but when frmAddOrderLine is opened, from the button on frmOrders, the OrderID field is blank - where this needs to be the OrderID from the active record on frmOrders. Can anyone tell me how I can do this?
Thanks,
Gary