Others

How to Use IS NULL to Filter Blank Values in Microsoft Access

Khadija KhanKhadija Khan Nov 2, 2026 868 views

Question details

The user needs to properly filter blank or Null values in a Microsoft Access database but encounters errors when concatenating Null into SQL expressions.

How to Use IS NULL to Filter Blank Values in Microsoft Access
Product
Microsoft Access
Device & OS
not provided
Scenario
Building SQL queries or filters to return database records with missing data.
Observed behavior
Comparing a field directly with Null or concatenating Null into a filter string creates an invalid or incomplete SQL expression, resulting in an error.
Before you start

Ensure you have a basic understanding of SQL syntax in Microsoft Access and have your target query or filter string open in Design View or SQL View.

Solution 1Recommended

Use the IS NULL Operator in SQL Expressions

The correct way to handle missing values in Access is to use the IS NULL operator, as Null represents the absence of a value and cannot be equated using standard mathematical operators.

In Microsoft Access SQL, Null indicates that data is missing, unknown, or undefined. You cannot use the equals sign (=) to compare a field to Null, nor can you concatenate the value of Null directly into an SQL string.

Attempting to concatenate Null will result in an invalid or incomplete SQL expression. Instead, you must use the IS NULL operator to check for these missing values.

1
Open SQL View

Open your Microsoft Access database, navigate to your query, right-click the query tab, and select 'SQL View'.

2
Locate the Filter Condition

Find the WHERE clause or the filter expression where you want to check for blank values.

3
Apply IS NULL

Replace any direct equality checks (e.g., Field = Null) or concatenated Nulls with the IS NULL syntax. For example, append `AND (Orders.1EngDetailer) IS NULL` to your string.

4
Handle Optional Parameters

If you are using parameters that might be left blank by the user, structure your condition to handle both cases. Use a format like: `(Field = [Parameter] OR [Parameter] IS NULL)`.

Use the IS NULL Operator in SQL Expressions
Understanding Null Values: Because Null means 'no value', nothing can equal Null. Always use IS NULL to check for blanks and IS NOT NULL to explicitly exclude blank records from your query results.
Free Microsoft Office alternative

Explore WPS Office for Your Data Management Needs

While Microsoft Access handles complex relational databases, WPS Office offers a free, lightweight, and highly compatible alternative for everyday office tasks, including powerful spreadsheet data filtering and management in WPS Spreadsheet.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package.
  2. 2. Install and Launch: Follow the on-screen instructions to install the software, then launch WPS Office.
  3. 3. Open WPS Spreadsheet: Create a new spreadsheet or open your existing Excel data files to utilize advanced filtering tools.
Fully compatible with Microsoft Excel (.xlsx), Word (.docx), and PowerPoint (.pptx) formats.Free and lightweight Microsoft Office alternative with a familiar user interface.Advanced data filtering, pivot tables, and formulas in WPS Spreadsheet for robust data analysis.Seamless migration from Microsoft Office with no steep learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my query fail when I use '= Null' in Microsoft Access?

In SQL, Null represents an unknown or missing value. Standard equality operators like '=' cannot be used to compare unknown values. You must use the 'IS NULL' operator instead to identify blank fields.

How do I filter out blank values instead of finding them?

To exclude blank or missing values from your query results, use the 'IS NOT NULL' operator in your SQL WHERE clause. This ensures only records with actual data are returned.

Can I use the Nz() function to handle Null values in Access?

Yes, the Nz() function allows you to convert Null values to zero, a zero-length string, or another specified default value. This allows you to safely evaluate them using standard comparison operators without triggering expression errors.