ACC: "Invalid Use of Null" with SysCmd() Function (124160)
The information in this article applies to:
- Microsoft Access 1.1
- Microsoft Access 2.0
This article was previously published under Q124160
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you use the SysCmd() function in Access Basic code, you may receive
the error message "Invalid use of Null."
CAUSE
This error message occurs when the SysCmd() function returns a null value
and the return variable is declared as any data type other than Variant.
RESOLUTION
Make sure that the return variable for each call to the SysCmd() function
has a Variant data type.
STATUS
This behavior no longer occurs in Microsoft Access version 7.0.
REFERENCES
For more information about using the SysCmd() function in Microsoft Access
version 2.0, search for "SysCmd," and then "SysCmd Function" using the
Microsoft Access 2.0 Help menu.
Modification Type: | Major | Last Reviewed: | 5/6/2003 |
---|
Keywords: | kberrmsg kbprb kbusage KB124160 |
---|
|