ChrisSedgwick
Registered User.
- Local time
- Today, 16:47
- Joined
- Jan 8, 2015
- Messages
- 119
Hi,
I'm creating an Orders Management database and I need help adding data that has been input into a form, then into its respective table.
Example:
I'm adding a new Order to the database using a form I've created frmAddNewOrder. Within the form which has a form layout on the top half where the data entered will go directly into tblOrders. Then in the bottom half of the same form, a datasheet view of tblOrderDetails.
Within the form I have a command button called 'Add Items', this opens up a dialog form call frmAddItems. This is where the user will add multiple products along with any colours or other options.
What I then want the frmAddItems to include is a command button 'Add Item' which will add the selected items,along with its attibtues (colours etc) to the tblOrderDetails in their respective fields. I then want to add a 'Save and Close' command button then when clicked it refreshes the records so when I return to the frmAddNewOrder the details I've just entered are shown in the datasheet in the bottom half of the form.
Can anyone shed any light on what macro I need to use, if at all I need to use a macro? I hope I've explained my issue well enough. Please let me know if I haven't and what further information I need to offer.
Thanks,
Chris.
I'm creating an Orders Management database and I need help adding data that has been input into a form, then into its respective table.
Example:
I'm adding a new Order to the database using a form I've created frmAddNewOrder. Within the form which has a form layout on the top half where the data entered will go directly into tblOrders. Then in the bottom half of the same form, a datasheet view of tblOrderDetails.
Within the form I have a command button called 'Add Items', this opens up a dialog form call frmAddItems. This is where the user will add multiple products along with any colours or other options.
What I then want the frmAddItems to include is a command button 'Add Item' which will add the selected items,along with its attibtues (colours etc) to the tblOrderDetails in their respective fields. I then want to add a 'Save and Close' command button then when clicked it refreshes the records so when I return to the frmAddNewOrder the details I've just entered are shown in the datasheet in the bottom half of the form.
Can anyone shed any light on what macro I need to use, if at all I need to use a macro? I hope I've explained my issue well enough. Please let me know if I haven't and what further information I need to offer.
Thanks,
Chris.