Query criteria in Access
A criterion under a field makes the query show only matching records: all customers from the USA, all products over 100, all regular customers. Here you learn the forms you need most often.
In short: the criterion goes in the Criteria row under the field. Type text without quotes (Access adds them), numbers with a comparison like >100, Yes/No with Yes or No. A field used only for filtering gets no tick in Show.
Before you start: Create a query (design grid).
Try it now
Add the Country field to the grid and type the criterion below it.
Task Show Company, LastName and City of all customers from the USA.
Customers 25 rows, 10 columns
| CustomerID | Company | FirstName | LastName | City | PostalCode | Country | CustomerSince | Regular | Discount |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Noah | Evans | Leeds | LS1 1UR | UK | 28 Feb 2023 | ☑ | 0.1 | |
| 2 | Shaw & Partners | Noah | Davies | Glasgow | G1 1XQ | UK | 5 Feb 2024 | ☐ | 0.03 |
| 3 | Northlight Inc | Sophia | Hall | Denver | 80202 | USA | 30 Jun 2024 | ☑ | 0 |
| 4 | Olivia | Evans | Bristol | BS1 4DJ | UK | 29 Jun 2022 | ☑ | 0 | |
| 5 | Olivia | Smith | London | EC1A 1BB | UK | 23 Sep 2025 | ☑ | 0 | |
| 6 | Northlight Inc | Mia | Evans | Manchester | M1 1AE | UK | 1 Feb 2025 | ☐ | 0.1 |
| 7 | Bauer Ltd | Ava | Wilson | UK | 14 Oct 2024 | ☐ | 0.05 | ||
| 8 | Lucas | Taylor | Glasgow | G1 1XQ | UK | 2 Jul 2023 | ☐ | 0 | |
| 9 | Jack | Clark | Seattle | 98101 | USA | 7 Nov 2022 | ☐ | 0.1 | |
| 10 | Northlight Inc | Henry | Taylor | Denver | 80202 | USA | 3 Nov 2022 | ☑ | 0.1 |
| 11 | Northlight Inc | Oliver | Johnson | Bristol | BS1 4DJ | UK | 6 Mar 2024 | ☐ | 0 |
| 12 | Henry | Taylor | Chicago | 60601 | USA | 24 Dec 2023 | ☐ | 0 | |
| 13 | Northlight Inc | Noah | Taylor | London | EC1A 1BB | UK | 12 Oct 2022 | ☐ | 0 |
| 14 | Summit Consulting | Mia | Smith | Austin | 78701 | USA | 6 Feb 2022 | ☑ | 0 |
| 15 | Mia | Clark | Austin | 78701 | USA | 9 Mar 2022 | ☑ | 0.05 | |
| 16 | Chloe | Hall | Seattle | 98101 | USA | 4 May 2022 | ☐ | 0.03 | |
| 17 | Market Street Clinic | Sophia | Johnson | Boston | 02108 | USA | 4 Jun 2023 | ☑ | 0 |
| 18 | Roth Legal | Mia | Wright | Manchester | M1 1AE | UK | 23 Sep 2022 | ☑ | 0.05 |
| 19 | Northlight Inc | Grace | Wright | UK | 16 Dec 2023 | ☐ | 0.03 | ||
| 20 | Northlight Inc | Olivia | Brown | Boston | 02108 | USA | 19 Jun 2023 | ☐ | 0.03 |
| 21 | Liam | Brown | Boston | 02108 | USA | 23 Jun 2025 | ☐ | 0.03 | |
| 22 | Bauer Ltd | James | Johnson | Manchester | M1 1AE | UK | 5 Jun 2025 | ☐ | 0.05 |
| 23 | Noah | Wilson | Austin | 78701 | USA | 23 May 2022 | ☐ | 0 | |
| 24 | Market Street Clinic | James | Smith | Bristol | BS1 4DJ | UK | 16 Jan 2022 | ☐ | 0.1 |
| 25 | Northlight Inc | Sophia | Hall | Denver | 80202 | USA | 4 Aug 2025 | ☑ | 0 |
Criteria at a glance
| Criterion | Field type | finds |
|---|---|---|
USA or "USA" | Text | exactly this text, ignoring case |
100 | Number, Currency | exactly 100 |
>100 | Number, Currency | more than 100 |
>=0.05 | Number | at least 0.05 |
<>"UK" | Text | everything except UK |
Yes or No | Yes/No | ticked or not ticked |
When you run or save the query, Access rewrites the criterion in its own form: USA becomes "USA". Case does not matter when comparing: "usa" also finds “USA”.
Comparing numbers
The signs >, <, >=, <= and <> go right before the value. Mind the difference: “more than 100” is >100, “100 or more” or “at least 100” is >=100.
Task Show all products that cost more than 100, with ProductName and UnitPrice, most expensive first.
Products 18 rows, 6 columns
| ProductID | ProductName | CategoryID | UnitPrice | UnitsInStock | Discontinued |
|---|---|---|---|---|---|
| 1 | Blue ballpoint pen | 1 | 1.20 | 121 | ☐ |
| 2 | Highlighter 4-pack | 1 | 3.90 | 76 | ☐ |
| 3 | Hole punch | 1 | 8.50 | 237 | ☐ |
| 4 | Stapler | 1 | 12.90 | 61 | ☐ |
| 5 | Lever arch file | 1 | 2.80 | 76 | ☑ |
| 6 | USB drive 64 GB | 2 | 9.90 | 193 | ☐ |
| 7 | Wireless mouse | 2 | 19.90 | 157 | ☐ |
| 8 | Keyboard | 2 | 34.90 | 216 | ☐ |
| 9 | 27-inch monitor | 2 | 229.00 | 129 | ☐ |
| 10 | Headset | 2 | 49.00 | 47 | ☐ |
| 11 | Office chair | 3 | 189.00 | 135 | ☐ |
| 12 | Desk | 3 | 349.00 | 46 | ☐ |
| 13 | Mobile pedestal | 3 | 129.00 | 105 | ☐ |
| 14 | Copy paper A4 | 4 | 4.50 | 35 | ☐ |
| 15 | Notepad | 4 | 1.90 | 122 | ☐ |
| 16 | Envelopes 100-pack | 4 | 6.90 | 93 | ☐ |
| 17 | Labels | 4 | 7.50 | 75 | ☐ |
| 18 | Laminating pouches | 4 | 11.90 | 211 | ☐ |
A field only for filtering
Often you want to filter on a field without seeing it, such as the payment method. Then the field stays in the grid with its criterion, but with Show cleared.
In real Access
- Open the query in Design view.
- Click the Criteria row in the field's column and type the criterion.
- For a field that should not appear in the result, clear its Show box.
- Run. If the result is right, save with Ctrl+S.
Other ways
For a single criterion the datasheet filter works too. The query has the advantage of being saved and can feed forms and reports.
Common mistakes
Empty result with text
Usually a typo in the value (“USAA”) or an extra space. Access compares the exact text; only case is ignored.
Percent as a whole number
5% is stored as 0.05. The criterion >=5 therefore finds nobody.
Criterion in the wrong column
A criterion applies to the field of its own column. If “USA” sits under City instead of Country, Access looks for a city called USA.
FAQ
How do I find empty fields?
With the criterion Is Null; the opposite is Is Not Null. Both come in level 2 with more criteria.
Can I combine several criteria?
Yes. Criteria in the same row apply together (AND), criteria in the or row apply as alternatives (OR). That is the first topic of level 2.