The information in this article applies to:
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
This error message can also occur when you compare a recordset's bookmark to the RecordsetClone of, for example, a form's record source. RESOLUTION
Use the StrComp() function to compare a Variant or String variable to a
bookmark, or to compare a bookmark against a bookmark. The third argument
for the StrComp() function must be set to a value of 0 (zero).
MORE INFORMATIONOnline Help for the Bookmark Property contains the following subheading: 'Settings and Return Values.'The information under this subheading reads as follows: The setting or returned value is a string expression or variant expression that evaluates to a valid bookmark. (Data type is Variant array of Byte data.)Despite the information in Help, if a bookmark is compared against a variable of data type Variant or String, or compared to another bookmark while using a comparison operator (such as an equal sign) in Visual Basic for Applications, the procedure fails, generating the error message mentioned in the "Symptoms" section. Steps to Reproduce Behavior
REFERENCES
For more information about the StrComp() function, search the Help Index
for "StrComp Function," or ask the Microsoft Access 97 Office Assistant.
Additional query words:
Keywords : kberrmsg kbprg PgmObj |
Last Reviewed: October 12, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |