Others

Use a Combo Box to Add Items to an Access Checkout Subform

Chanuka GeekiyanageChanuka Geekiyanage Nov 27, 2026 869 views

Question details

Create an Access checkout form that uses a barcode or item number combo box to add multiple inventory items to one transaction.

Add Items to an Access Checkout Subform with a Combo Box
Product
Microsoft Access
Device & OS
not provided
Scenario
A lending database needs a main checkout form and a related subform for selecting or scanning each item.
Observed behavior
The combo box lists barcodes and other columns, but pressing Enter does not add the selected item to the checkout subform.
Before you start

Confirm that the inventory table has a unique ItemID and a barcode or item number for each item. Check that your scanner enters the same barcode value shown in Access and whether it sends an Enter key after scanning.

Solution 1Recommended

Bind an item combo box to a checkout items subform

Use this structure to store each selected item as a separate record linked to the current checkout.

The combo box saves an ItemID in the current child record; it does not import an entire inventory row. Other item details remain in the inventory table and can be displayed through a query or additional controls.

1
Create the checkout tables

In Access, use Create > Table Design to create tblCheckout with a CheckoutID primary key and checkout details, and tblCheckoutItems with a CheckoutItemID primary key plus CheckoutID and ItemID fields. The child fields must have data types compatible with the corresponding parent and inventory keys.

2
Set up the relationships

Open Database Tools > Relationships. Link tblCheckout.CheckoutID to tblCheckoutItems.CheckoutID and the inventory table's ItemID to tblCheckoutItems.ItemID. Enable referential integrity where appropriate.

3
Build the form and subform

Create a main form bound to tblCheckout and a subform bound to tblCheckoutItems. In the subform control's Property Sheet, set Link Master Fields and Link Child Fields to CheckoutID so new item records are associated with the current checkout.

4
Add a bound combo box

Open the subform in Design View, turn on Use Control Wizards, and add a Combo Box. Choose values from the inventory table, include ItemID and the barcode or item number, and select the option to store the value in the subform's ItemID field.

5
Configure the lookup

In the combo box Property Sheet, confirm that Control Source is ItemID and Bound Column points to the ItemID column. Set Column Count and Column Widths to show the barcode, hide ItemID if desired, and place the barcode as the first visible column for typing or scanning. Set Auto Expand and Limit To List to Yes.

6
Add items to a checkout

Open the main form in Form View and create or select a checkout. In a new subform row, select an item or scan its barcode into the combo box, then confirm the matching selection. Move to the next new subform record using the navigation bar and repeat for each item.

Bind an item combo box to a checkout items subform
If Enter does not add an item: Check that the combo box is bound to ItemID, the subform is bound to an editable tblCheckoutItems source, and Allow Additions is set to Yes. Confirm that the barcode matches a listed value and that the checkout record has been saved. Enter may only confirm the combo selection or move focus; use the subform's new-record navigation button to start another item.
Free Microsoft Office alternative

Review exported checkout data in WPS Spreadsheets

WPS Office is a free, lightweight alternative for working with Office documents. Its familiar interface makes it easy to move exported inventory and checkout data into spreadsheets, although it does not replace Access database forms or fix an Access combo box.

Review and organize checkout or inventory data exported from Access.Open and edit Microsoft Excel XLS and XLSX spreadsheets.Use a familiar spreadsheet interface for an easier transition from Microsoft Office.Work with documents in a lightweight, free office suite.
microsoft office alternative - wps office

Frequently Asked Questions

Why does selecting a barcode not create a checkout item?

In the subform's Design View, check the combo box Control Source in the Property Sheet. It must be bound to the child table's ItemID field, and the subform must allow additions to an editable record source.

How does the subform know which checkout an item belongs to?

Select the subform control on the main form and open its Property Sheet. Set Link Master Fields and Link Child Fields to the corresponding CheckoutID fields.

Can I scan a barcode while storing the item's numeric ID?

Yes. Include ItemID and barcode in the combo box row source, set Bound Column to the ItemID column, and make the barcode the first visible column. Scanning a matching barcode can select the item while the bound field stores its ID.

How do I add more than one item to a checkout?

After selecting the first item, use the subform navigation bar's new-record button and select or scan the next item. Each item is stored in a separate tblCheckoutItems record with the same CheckoutID.

Does the combo box copy item details into the checkout table?

No. A combo box bound to ItemID stores the selected ID in the child record. Use a query or additional controls to display related details from the inventory table.