Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Add a criteria

Open the query in Design view. In the field you want to filter, add criteria to the Criteria row, or the or row.

Basic rules

Surround text criteria with double quotes. Don't surround numbers with anything. Surround dates and times with pound signs. Use. Y, N, 1, or 0 to filter Yes/No fields (works with all types of databases).

And/Or

For AND logic, place all criteria on the same criteria row or the same or row. For OR logic, place criteria on different rows.

NOT, IN, LIKE, BETWEEN

NOT returns all values that don't match your criteria. IN returns all values that match your criteria. LIKE lets you use wildcard characters. BETWEEN and AND let you filter for a range of data.

Wildcards

See links on this slide for information about using wildcards in criteria. Use the ANSI-89 characters for MDB and ACCDB files; ANSI-92 for Access Apps.

See also

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×