Others

Create an Access Inventory Transaction Form with a Subform

Chanuka GeekiyanageChanuka Geekiyanage Nov 25, 2026 870 views

Question details

Create an Access form that records one inventory transaction with multiple items under the same transaction ID.

Create an Access Inventory Transaction Form with a Subform
Product
Microsoft Access
Device & OS
not provided
Scenario
An inventory receipt needs a transaction date, employee, source and destination locations, and a spreadsheet-like list of items.
Observed behavior
Each transaction should have one header record and multiple linked item records, without displaying the transaction ID on the form.
Before you start

Identify the existing tables and their primary keys, including the employee, location, and inventory item IDs. If the current transaction log stores header fields on every item row, plan how to separate those values into header and detail records.

Solution 1Recommended

Build a transaction header form with a linked item subform

Use separate header and detail tables to record multiple inventory items under one transaction.

The main form stores information shared by the receipt. The subform stores one detail record for each item, linked to the header by TransactionID.

1
Create the header table

In Access, select Create > Table Design and create a transaction header table with TransactionID as an AutoNumber primary key. Add TransactionDate, EmployeeID, LocationFromID, and LocationToID fields.

2
Create the detail table

Use Create > Table Design to create a transaction detail table with an AutoNumber detail primary key, a TransactionID field, and an ItemID field. If the header TransactionID is AutoNumber, set the detail TransactionID to Number with Field Size set to Long Integer.

3
Define the relationships

Open Database Tools > Relationships and add the tables. Link the header TransactionID to the detail TransactionID, and link the employee, item, and location ID fields to their corresponding lookup tables. Select Enforce Referential Integrity where appropriate.

4
Create the main form

Select the header table and choose Create > Form. Open the form in Design View and include controls for TransactionDate, employee, source location, and destination location. Use the Combo Box control wizard to display names while storing the corresponding IDs.

5
Add and link the subform

In the main form's Design View, add a Subform/Subreport control based on the detail table. Select the subform control and check its Property Sheet: set both Link Master Fields and Link Child Fields to TransactionID. Use Datasheet view for the subform and add an ItemID combo box that displays item descriptions.

6
Test a transaction

Open the main form in Form View, enter a new transaction, and add several items in the subform datasheet. Check the underlying tables to confirm there is one header record and several detail records sharing its TransactionID. Hide the TransactionID controls if they are visible.

Build a transaction header form with a linked item subform
Avoid repeating item descriptions: Store ItemID in the detail table and display the description from the inventory items table. Store a separate description in the detail record only if you need a historical snapshot.
Free Microsoft Office alternative

Review exported inventory data in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility. Export Access data to Excel files to review inventory transactions in WPS Spreadsheets; WPS does not create or run Access forms or subforms.

Review exported transaction headers and item lists in spreadsheetsOpen and edit Microsoft Excel XLSX files for easier migrationWork in a familiar spreadsheet interfaceUse a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does each item need a separate detail record?

Each detail record links one item to the transaction through TransactionID. The shared date, employee, and locations remain in the header, so they do not need to be repeated for every item.

How do I hide TransactionID without breaking the link?

In Design View, hide the TransactionID control on the form or subform. Keep TransactionID in the underlying record sources and retain it in the subform control's Link Master Fields and Link Child Fields properties.

How can I show item descriptions instead of item IDs?

In the subform's Design View, use the Combo Box wizard to select values from the inventory items table. Configure the combo box to store ItemID while displaying the description.

Why can't I edit records in the form?

Check the form's Property Sheet to ensure Allow Edits is set to Yes. Also open its record source directly and verify that it is updatable and that you have permission to edit the underlying tables.

Can I use a split form instead of a subform?

A split form shows two views of the same record source. For one transaction with multiple item records, use a main form and a linked subform based on separate header and detail tables.