IsNull
Using the ISNULL Function
In this tutorial you will learn how to use the IsNull Function.
The IsNull function returns a Boolean value indicating whether an expression is NULL or not.
=IsNull( expression )
expression a valid value
In this example we will use the String "Alex".
The result is 0.
If we checked IsNull(Null) we would get -1 in return.
Query
The results using a Query would be
SELECT IsNull("Alex");
FORM
In a Form you could set the Default Value of a Textbox to
=IsNull("Alex")
VBA
In a Form add a TEXTBOX control and rename it "txtIsNull", then you could add the following in the Load Event.
Private Sub Form_Load()
txtIsNull = IsNull("Alex")
End Sub
Courses
Access Expert 25
Search
You can find more about this by searching the website.
By: Alex Hedley
Click here to sign up for more FREE tips
|