Populate an Access Junction Table with Multiple Inventory Items
Question details
Add more than 100 selected inventory items as separate records in a junction table for a transmittal.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- An inventory and transmittal database uses a junction table to manage a many-to-many relationship.
- Observed behavior
- The user wants an efficient way to select multiple inventory items and create one junction-table record for each relationship.
Confirm that the junction table contains fields for the transmittal ID and inventory item ID, and that its relationships point to the corresponding parent tables. Check whether duplicate transmittal and inventory item pairs should be prevented with a unique index.
Add Related Inventory Items with a Form and Subform
Use a bound subform to add or remove junction-table records without VBA.
In Access, use Create > Form Wizard or Form Design to create a form based on the transmittal table.
Open the main form in Design View and add a subform based on the junction table. Set the subform control's Link Master Fields and Link Child Fields properties to the matching transmittal ID fields.
In the subform's Design View, add a combo box bound to the junction table's inventory item ID field. Set its Row Source to the inventory table so users can identify and select items.
Open the main form in Form View, navigate to a transmittal, and select an inventory item in each new subform row. Each saved row creates a separate junction-table record.

Use a Multi-Select List Box and VBA for Batch Selection
Use this approach when selecting many inventory items at once is more important than avoiding code.
Manage Inventory Lists with WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar interface for working with inventory lists and other office files. Its Excel format compatibility makes it easy to move spreadsheet data, although it does not replace an Access database or populate its junction tables.

Frequently Asked Questions
Can a multi-select list box populate an Access junction table without code?
No. An unbound multi-select list box requires VBA to read its ItemsSelected collection and insert or delete junction-table records. A bound subform is a no-code alternative for entering one item per row.
How does the subform know which transmittal a row belongs to?
Set the subform control's Link Master Fields and Link Child Fields properties to the matching transmittal ID fields. Access then links new subform rows to the current main-form record.
How can I prevent the same inventory item from being added twice to one transmittal?
Create a unique composite index on the junction table's transmittal ID and inventory item ID fields. If you use VBA, also check for an existing pair before inserting it.
Can I remove an item from a transmittal using the subform?
Yes. In Form View, select and delete the relevant junction-table row. This removes the relationship; it should not delete the inventory item itself.




