Share this page:

MS Access: IsNull Function

Learn how to use the Access IsNull function with syntax and examples.

Description

The Microsoft Access IsNull function returns TRUE if the expression is a null value. Otherwise, it returns FALSE.

Syntax

The syntax for the Microsoft Access IsNull function is:

IsNull ( expression )

Parameters or Arguments

expression is a variant that contains a string or numeric value.

Applies To

The IsNull function can be used in the following versions of Microsoft Access:

  • Access 2013, Access 2010, Access 2007, Access 2003, Access XP, Access 2000

Example

IsNull (null)
Result: TRUE

IsNull ("Tech on the Net")
Result: FALSE

Example (in VBA Code)

The IsNull function can be used in VBA code in Microsoft Access. For example:

Dim LValue As Boolean

LValue = IsNull("Tech on the Net")

In this example, the variable called LValue would contain FALSE as a value.

Example (in SQL/Queries)

You can also use the IsNull function in a query in Microsoft Access.

Microsoft Access