The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills. SYMPTOMSA user-defined function may return one of the following error messages:
-or-
CAUSENull assumes a data type of Variant. You are trying to evaluate or assign Null to a non-Variant data type. RESOLUTIONMake sure that variables contain valid data or define the variables as Variant. For example:
instead of
MORE INFORMATIONNull is an indication that a variable contains no valid data. The following function reproduces this behavior.
Run the function by pressing the F5 key. This will raise the error described in the "Symptoms" section of this article. The initial error occurs because the function is trying to assign a Null to the variable Count, which is an Integer. To resolve this error, either Dim Count As Variant, or assign a 0 (zero) to Count instead of Null.Assign a 0 to Count and run the function again. The error is raised again because the function is evaluating a non-Variant data type to Null (For Count = 1 To Null). Additional query words: pounderror prb
Keywords : kberrmsg kbprg kbdta |
Last Reviewed: September 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |