How to Find Records with Either Checkbox Selected in MS Access
Question details
The user needs to filter a Microsoft Access query to return records where at least one of two Yes/No checkboxes is selected, rather than requiring both to be checked.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Designing an Access database query to filter records based on multiple Yes/No (checkbox) fields.
- Observed behavior
- Placing the criteria for two Yes/No fields in the same row defaults to an AND condition, which requires both checkboxes to be selected to return a record.
Open your Microsoft Access database in Design View and ensure your target table has at least two Yes/No fields ready for querying.
Use Separate Criteria Rows to Create an OR Condition
To return records where either checkbox is selected, you must place the criteria on separate rows in the query design grid to create an OR condition.
In Microsoft Access, placing criteria on the same row tells the database that all conditions must be met (an AND condition). By dropping one of the criteria to the row below it (the 'Or' row), Access will return records if either condition is true.
Navigate to the 'Create' tab and click 'Query Design'. Add the table containing your Yes/No fields to the workspace.
Double-click the two Yes/No fields (e.g., 'Dead' and 'Left organization') to add them to the query grid.
In the 'Criteria' row under the first Yes/No field, type '-1' (which represents True or Yes in Access).
Move to the second Yes/No field. Instead of using the 'Criteria' row, click into the 'Or' row (directly below the Criteria row) and type '-1'.
Click the 'Run' button in the ribbon. The query will now display records where either of the checkboxes is selected.

Query Using Date Fields Instead of Checkboxes
If you are using checkboxes to represent events that happen on specific dates, querying the actual date fields is a more robust approach.
Looking for a Free Office Suite? Try WPS Office
While Microsoft Access is a specialized tool for database management, you can handle extensive data organization, filtering, and analysis using WPS Spreadsheet. WPS Office is a lightweight, completely free alternative that perfectly supports Microsoft Word, Excel, and PowerPoint formats.
- 1. Download the Installer: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded file and follow the simple on-screen instructions to install the software.
- 3. Manage Your Data Easily: Launch WPS Spreadsheet to start organizing, filtering, and analyzing your data with ease.

Frequently Asked Questions
Why does my Access query require both checkboxes to be selected?
If you place the criteria (like -1 or True) for multiple fields on the exact same 'Criteria' row in the query design grid, Access processes it as an AND condition. This means every condition on that row must be met for a record to be displayed.
What does -1 mean in a Microsoft Access query?
In Microsoft Access, Yes/No fields store boolean values as numbers. 'True', 'Yes', or 'On' are stored as -1 in the database, while 'False', 'No', or 'Off' are stored as 0. Entering -1 in the criteria row searches for checked boxes.
Can I combine AND and OR conditions in the same query?
Yes. You can place conditions that must both be true on the same row, and alternative conditions on separate rows. However, you must be careful to repeat the shared AND conditions on every OR row if they need to apply to all scenarios.




