Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk4 min

How to Add Criteria to an Access Query

Add criteria in an Access query’s Design view to filter records by text, numbers, dates, null values, or a run-time parameter.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Open the query in Design view, add the field you want to filter if it is not already on the design grid, and type a criterion in that field’s Criteria row. Run the query to see which records match. A criterion is an expression Access compares with field values to decide whether to include each record.

Add a criterion in Query Design

  1. In the Navigation Pane, right-click the saved query and choose Design View.

    As an Amazon Associate I earn from qualifying purchases.

  2. Find the field whose values should determine which records appear. If it is not in the design grid, double-click it in the field list or drag it into an empty grid column. You can use a field for filtering even if you do not want it displayed in the results: clear its Show checkbox.

    What’s actually slowing this PC down?

    Pick the symptom - the matching free tool is one click away.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  3. In the grid’s Criteria row beneath that field, enter an expression suited to the field’s data type.

  4. Select Run (the red exclamation-mark button) to view the matching records. Return to Design view to adjust the criterion.

Microsoft documents this workflow for Access for Microsoft 365 and Access 2024, 2021, 2019, and 2016. Microsoft’s query-criteria examples explain the expression syntax and grid behavior.

Choose syntax that fits the field

These are sample expressions to type in a Criteria cell. Replace the sample values with values present in your data; text values are commonly enclosed in quotation marks, and date literals in the examples use number signs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
What you want Example criterion Effect
Match exact text ="Chicago" Returns records whose text field is Chicago.
Match text beginning with U Like "U*" Matches text starting with U in the familiar Access ANSI-89 wildcard syntax.
Find text containing Korea Like "*Korea*" Matches Korea anywhere in the field.
Match one of several text values In("France", "China", "Germany") Returns values included in the list.
Match numbers above 25 and below 50 >25 And <50 Excludes both endpoints.
Match numbers from 50 through 100 Between 50 And 100 Includes both endpoints.
Find records with or without a value Is Null / Is Not Null Tests whether the field has no value or has a value.
Match a particular date #2/2/2012# Matches the example date using Access’s documented date delimiters.
Match dates in an interval Between #1/1/2017# And #3/31/2017# Matches dates in the stated range, including the endpoints.
Use a date relative to today Date() or DateAdd(...) Uses a date function to make the criterion dynamic; choose the expression that represents the period you need.

For further examples of text criteria, see Microsoft’s guidance on text values; for date expressions, see its date-criteria examples.

Combine conditions with AND and OR

Criteria entered on the same grid row across different fields are combined with AND: every condition must be true for a record to appear. For example, putting Chicago under City and a birth-date condition under BirthDate on the same row requires a record to satisfy both.

To allow alternatives, put one condition in the Criteria row and the alternative in the Or row (or another lower alternate row). Those rows are combined with OR, so a record can match either condition. Putting a second condition under another field on the same row does not make it an alternative.

Rank #3
Sale
The Microsoft Office 365 Bible: The Most Updated and Complete Guide to Excel, Word, PowerPoint, Outlook, OneNote, OneDrive, Teams, Access, and Publisher from Beginners to Advanced
  • The Microsoft Office 365 Bible: The Most Updated and Complete Guide to Excel, Word, PowerPoint, Outlook, OneNote, OneDrive, Teams, Access, and Publisher from Beginners to Advanced
  • ABIS BOOK

Use the wildcard syntax that matches the database

In the familiar ANSI-89 Access pattern syntax, * represents zero or more characters and ? represents one character. Bracket expressions can match a character set, such as [ae], or a range, such as [a-h]. For example, Like "wh*" can match “wh,” “what,” “white,” and “why.”

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

ANSI-92 databases use a different wildcard family, including % and _ in place of * and ?. If a pattern does not behave as expected, check the database’s ANSI-89/ANSI-92 setting and use the corresponding characters. See Microsoft’s Access wildcard reference.

Choose between a fixed criterion and a parameter

A fixed criterion suits a saved query when the field and value stay the same. If the field stays constant but the value changes between runs, use a parameter prompt such as [Enter a city:]. When the query runs, Access asks for the value and uses it as the criterion. A parameter can also be combined with Like for partial matching.

For date, number, and currency parameters, declare the parameter’s data type so Access handles the entered value appropriately. Microsoft explains parameter prompts and data-type settings in its parameter-query guidance.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot criteria that return unexpected results

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.