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.
The results using a Query would be
In a Form you could set the Default Value of a Textbox to
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")
Access Expert 25
You can find more about this by searching the website.
By: Alex Hedley
Click here to sign up for more FREE tips