The information in this article applies to:
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
CAUSEThis error message occurs when the SysCmd() function returns a null value and the return variable is declared as any data type other than Variant. RESOLUTIONMake sure that the return variable for each call to the SysCmd() function has a Variant data type. STATUSThis behavior no longer occurs in Microsoft Access version 7.0. MORE INFORMATION
The only Access Basic data type that can hold a null value is the Variant
data type. Since the SysCmd() function frequently returns a null value, the
return variable should have the Variant data type, as in the following
example:
NOTE: In Microsoft Access version 2.0, you can replace the "4" in the above example with "SYSCMD_SETSTATUS" (a new constant in version 2.0). If you do not explicitly declare the return variable's data type, it is implicitly declared as a Variant data type, so the following example works as well:
Steps to Reproduce Behavior
REFERENCESFor 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 kbusage |
Last Reviewed: April 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |