How to Use IS NULL to Filter Blank Values in Microsoft Access
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.

- 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.
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.
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.
Open your Microsoft Access database, navigate to your query, right-click the query tab, and select 'SQL View'.
Find the WHERE clause or the filter expression where you want to check for blank values.
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.
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)`.

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. Download WPS Office: Visit the official WPS website and download the free installation package.
- 2. Install and Launch: Follow the on-screen instructions to install the software, then launch WPS Office.
- 3. Open WPS Spreadsheet: Create a new spreadsheet or open your existing Excel data files to utilize advanced filtering tools.

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.




