Article ID: 103432
Article Last Modified on 1/18/2007
-or-
Function IsFieldNull (MyValue As String)
If IsNull(MyValue) Then
IsFieldNull = "The field is null!"
Else
IsFieldNull = "The field is not null!"
End If
End Function
To prevent the error "Invalid Use of Null!" or "#Error" when the field is
null, define the variable, MyValue, in the custom IsFieldNull() function as
a Variant, as follows:
Function IsFieldNull (MyValue As Variant)
If IsNull(MyValue) Then
IsFieldNull = "The field is null!"
Else
IsFieldNull = "The field is not null!"
End If
End Function
Additional query words: pounderror
Keywords: kberrmsg kbprb kbprogramming KB103432