ACC: "Invalid Use of Null" or "#Error" Error in Custom Function (103432)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q103432
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
A user-defined function may return one of these error messages:
Invalid Use of Null!
#Error
CAUSE
If a field's data type is explicitly defined as any type other than
Variant, Microsoft Access is unable to compare the variable to a Null.
RESOLUTION
Define the variable as a Variant, which includes the Date/Time, Floating-
point Number, and String data types.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kberrmsg kbprb kbProgramming KB103432 |
---|
|