Fix a Blank All Selection in a Microsoft Access Combo Box
Question details
Make the All option display correctly in an Access combo box and return all records when selected.

- 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.
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.
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.
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.
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.
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.
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.

Disable a form filter when All is selected
Use this alternative when the combo box controls the form's Filter property rather than a query criterion.
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.

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.




