Article ID: 124160
Article Last Modified on 5/6/2003
APPLIES TO
- Microsoft Access 1.1 Standard Edition
- Microsoft Access 2.0 Standard Edition
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.
Keywords: kberrmsg kbprb kbusage KB124160