I am new to this forum and to access. Here I have a challenging situation that I am not able to solve and I know you can solve in a couple of minutes. Here is how I have my access database set up. This is a shipping / packaging database I am working on. I have three tables connected by one to many and many to many relationship as shown here.
Table 1
Sales Order Line--------- Primary Key
Table2
BoxNum, Sales Order Line --------- Primary Key
BoxItemDataTable
itemIDFK - Foreign Key for Table 2
BoxIDFK - Foreign Key for Table 3
SalesOrderLine
Table 3
itemID - AutoNumber, Primary Key
Table 1 and Table 2 – connected by ‘Sales Order Line’ through one to many relationship
Table 2 and Table 3 - connected by BoxItemDataTable for many to many relationship
Here is where I need the help. How can I insert records using sql to both boxDataTable and itemDataTable at the same time. I like to do this so I can open a form based on this query and add additional records to these tables later. I have a number of records to be inserted to BoxDataTable.
Please see attachment to know relationships. I hope someone can help me. I desperately need some help.
Table 1
Sales Order Line--------- Primary Key
Table2
BoxNum, Sales Order Line --------- Primary Key
BoxItemDataTable
itemIDFK - Foreign Key for Table 2
BoxIDFK - Foreign Key for Table 3
SalesOrderLine
Table 3
itemID - AutoNumber, Primary Key
Table 1 and Table 2 – connected by ‘Sales Order Line’ through one to many relationship
Table 2 and Table 3 - connected by BoxItemDataTable for many to many relationship

Here is where I need the help. How can I insert records using sql to both boxDataTable and itemDataTable at the same time. I like to do this so I can open a form based on this query and add additional records to these tables later. I have a number of records to be inserted to BoxDataTable.
Please see attachment to know relationships. I hope someone can help me. I desperately need some help.
Attachments
Last edited: