This MSAccess tutorial explains how to use the Access IsNull function with syntax and examples.
The Microsoft Access IsNull function returns TRUE if the expression is a null value. Otherwise, it returns FALSE.
The syntax for the IsNull function in MS Access is:
IsNull ( expression )
expression is a variant that contains a string or numeric value.
The IsNull function can be used in the following versions of Microsoft Access:
Let's look at how to use the IsNull function in MS Access:
IsNull (null) Result: TRUE IsNull ("Tech on the Net") Result: FALSE
The IsNull function can be used in VBA code in Microsoft Access.
Dim LValue As Boolean LValue = IsNull("Tech on the Net")
In this example, the variable called LValue would contain FALSE as a value.
You can also use the IsNull function in a query in Microsoft Access.
In this query, we have used the IsNull function as follows:
This query will evaluate whether the Description field contains a null value and display the results in a column called Expr1. You can replace Expr1 with a column name that is more meaningful.
The results would now be displayed in a column called NullDescription.
(scroll to see more)