Others

Fix a Blank All Selection in a Microsoft Access Combo Box

Maira MehtabMaira Mehtab Nov 22, 2026 868 views

Question details

Make the All option display correctly in an Access combo box and return all records when selected.

Fix a Blank All Selection in a Microsoft Access Combo Box
Product
Microsoft Access
Device & OS
not provided
Scenario
A combo box uses a union query to add an All option for filtering records.
Observed behavior
Selecting All makes the combo box appear blank because its bound value is Null.
Before you start

Check the combo box's Row Source, Bound Column, and Column Widths on its Property Sheet. Choose a numeric sentinel such as 0 only if it cannot be a real record ID, and note the names of the form and combo box.

Solution 1Recommended

Use a reserved value for All and update the query filter

Use this approach when a query filters records based on the combo box selection.

Replace the example table, field, form, and control names with those in your database. The example uses 0 as the reserved All value; choose another unused numeric value if 0 is a valid ID.

1
Edit the row source

Open the form in Design View, select the combo box, and open Property Sheet > Data > Row Source. For a category table with existing records, use: SELECT CategoryID, CategoryName FROM Categories UNION SELECT 0, 'All' FROM Categories ORDER BY CategoryName; The UNION removes duplicate All rows. If Categories is empty, this example will not produce an All row.

2
Set the display columns

In the combo box's Property Sheet, set Column Count to 2 and Bound Column to 1. Set Column Widths so the ID column is hidden and the name column is visible, for example 0;2.

3
Update the query criteria

Open the filtering query in SQL View and use a condition such as: WHERE (CategoryID = Forms!frmFilter!cboCategory OR Forms!frmFilter!cboCategory = 0). Keep the referenced form open while running the query.

4
Requery and test

Open the form in Form View, requery the combo box if needed, and select All. Requery the filtered form or subform so the query runs again; All should remain visible and the query should return records without a CategoryID restriction.

Use a reserved value for All and update the query filter
Avoid using Null as the All value: Null is not equal to another Null in Access. A reserved non-null value makes the selection explicit and avoids relying on Null equality.
Free Microsoft Office alternative

Work with Office files in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with compatible Office documents, spreadsheets, and presentations. Move supported files into WPS easily, but use Microsoft Access to repair or run Access forms, combo boxes, and database filters.

Review and filter tabular data in WPS Spreadsheets.Open and edit compatible Microsoft Excel XLSX files.Work with compatible Word DOCX and PowerPoint PPTX files.Use a familiar interface for everyday Office tasks.
QA img-9

Frequently Asked Questions

Why does the All selection appear blank in my Access combo box?

The All row may have Null in the bound column. Use a reserved non-null ID, such as 0 if it is unused, and check Bound Column and Column Widths on the combo box's Property Sheet.

Can I use Null to return all records instead?

Yes. A query can test for Null explicitly with IS NULL, for example: WHERE CategoryID = Forms!frmFilter!cboCategory OR Forms!frmFilter!cboCategory IS NULL. This also treats an unselected combo box as All and may not resolve the blank display.

Should I use an asterisk and LIKE for the All option?

No. For a numeric ID, check the reserved All value directly in the WHERE clause instead of using a wildcard. For example, use CategoryID = Forms!frmFilter!cboCategory OR Forms!frmFilter!cboCategory = 0.

Why does selecting All not refresh the displayed records?

The query or form may not have been requeried after the selection changed. Use the combo box's After Update event to requery the filtered form or subform, or apply the form filter in that event.