How to Fix Microsoft Access Query Criteria Returning Every Record
Question details
The user is attempting to filter data using a parameter query in Microsoft Access, but the query fails to apply the criteria and instead returns every record in the table.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Setting up a parameter query (e.g., using a specific value like 'F20') in Design View to filter records.
- Observed behavior
- The query ignores the specified parameter criteria and displays all records instead of the filtered results.
Verify the exact spelling of your target field names and ensure you know the specific data type (Text, Number, Date/Time) assigned to the column you are trying to filter.
Move the Parameter to the Criteria Row in Design View
The most common reason a query ignores a parameter and returns all records is that the parameter was mistakenly entered into the 'Field' row instead of the 'Criteria' row.
When designing a query in Microsoft Access, placing a parameter bracket in the Field row simply creates a new calculated column that prompts you for a value, rather than filtering the existing data.
Right-click your problematic query in the Access Navigation Pane and select 'Design View'.
Find the column representing the field you want to filter (for example, 'OrderSeasonOur').
Look at the 'Field' row. If your parameter prompt (e.g., '[Select Season]') is typed there, delete it. Instead, type the exact parameter prompt into the 'Criteria' row directly below that specific field.
Click the 'Run' button (the red exclamation mark) in the Query Design ribbon to verify that the query now properly filters the records based on your input.

Check Data Types and the SQL View
If the parameter is in the correct row, a data type mismatch or incorrect WHERE clause syntax might be causing the issue.
Looking for a Lightweight Alternative for Data Management?
If troubleshooting complex database queries in Microsoft Access is slowing you down, consider managing and filtering your datasets using WPS Spreadsheets. It provides powerful, intuitive data analysis tools without the steep learning curve of relational database software.
- 1. Export Your Data: Export your Access table data as an Excel workbook or a CSV file.
- 2. Open in WPS Spreadsheets: Launch WPS Office and open your exported file.
- 3. Apply Filters Effortlessly: Navigate to the 'Data' tab and click 'AutoFilter' to easily sort and filter your records without writing any SQL or criteria parameters.

Frequently Asked Questions
Why does my Access parameter query ask for input but then show everything?
This almost always happens when the parameter prompt (like [Enter Season]) is placed in the 'Field' row instead of the 'Criteria' row in Design View. Moving it down to the Criteria row fixes the issue.
Can a data type mismatch cause my Access query to fail?
Yes. If you enter alphanumeric text into a parameter that is querying a strict Number or Date field, Access cannot evaluate the criteria properly, which may result in an empty dataset or an error.
How do I view the underlying SQL code for my Access query?
While the query is open, right-click the query's document tab (or right-click it in the Navigation Pane) and select 'SQL View'. This reveals the exact code, including the WHERE clause controlling your filters.




