Others

Fix an Access Query Not Filtering by a ComboBox Value

Khadija KhanKhadija Khan Nov 22, 2026 868 views

Question details

The user needs an Access query to filter records using the value selected in a ComboBox.

Fix an Access Query Not Filtering by a ComboBox Value
Product
Microsoft Access
Device & OS
not provided
Scenario
A query criterion references a ComboBox whose Row Source contains an ID and a case value.
Observed behavior
The query returns no records when it references the ComboBox, although it works when the form is closed or a text box is used.
Before you start

Open the form that contains the ComboBox and select a value. Check the ComboBox Row Source and identify which query field should match the selected value.

Solution 1Recommended

Match the ComboBox bound column to the query field

Use this method when the query compares a field to the wrong value from a multi-column ComboBox.

The bound column determines the value passed when a query references the ComboBox. In a Row Source containing ID followed by Cases, Bound Column 1 passes the ID and Bound Column 2 passes the case value.

1
Inspect the ComboBox properties

Open the form in Design View, select the ComboBox, and open its Property Sheet. On the Data tab, check its Row Source and Bound Column.

2
Choose the matching bound column

Set Bound Column to 1 if the query filters an ID field, or to 2 if it filters the Cases value in a Row Source such as SELECT Cases.ID, Cases.Cases FROM Cases ORDER BY ID. Ensure the bound value and query field have compatible data types.

3
Check the query criterion

Open the query in Design View. In the Criteria row under the matching field, enter a form reference such as Forms!frmCases!cboCase, replacing the form and control names with your own.

4
Select a value and test

Open the form in Form View, select an item in the ComboBox, and run the query. If the query is already displaying results, run or requery it again after changing the selection.

Match the ComboBox bound column to the query field
Prefer a unique key: Filtering by a primary key such as CaseID is generally safer than filtering by a case value. If the case value is not unique, it can match multiple records.
Free Microsoft Office alternative

Work with exported Access data in WPS Spreadsheets

WPS Office is a free, lightweight alternative for working with office files in a familiar interface. Export Access query results to Excel to continue reviewing and filtering them in WPS Spreadsheets; WPS does not fix Access ComboBox queries or replace Access database forms.

Review and filter exported Access query results in a spreadsheet.Open and edit Microsoft Excel XLSX files for easier file migration.Use a familiar spreadsheet interface for everyday data work.Access free, lightweight office tools.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my ComboBox display a case value but pass an ID?

The displayed column and bound column can differ. In the ComboBox Property Sheet, check Bound Column on the Data tab to see which Row Source column supplies the value to the query.

When should I set Bound Column to 2?

Set it to 2 when the query filters by the value in the second Row Source column. For example, if the columns are ID and Cases, use 2 to pass Cases instead of ID.

How do I reference a ComboBox in query criteria?

In query Design View, enter a reference such as Forms!frmCases!cboCase in the Criteria row under the matching field. Replace the names with your form and ComboBox names, and keep the form open with a value selected.

Why is a primary key preferable to a case name?

A primary key uniquely identifies a record, while a case name or value may appear more than once. Set the ComboBox to bind to the key column and use the corresponding key field in the query criteria.