tech on the net

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:

Example

IsNull (null) would return TRUE
IsNull ("Tech on the Net") would return 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