The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills. SYMPTOMSIf you copy the example from the "GetObject Function" Help topic in Microsoft Access 97 and paste it into a module, you may receive the following error message when you compile your code: This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to the "Building Applications with Microsoft Access 97" manual. CAUSE
This error is caused by missing commas in the Declare statement for the
SendMessage function. A comma is missing after the ByVal wMsg As Long
argument and after the ByVal wParam As Long argument for this function.
This error is caused by a missing apostrophe (') before the following comment:
RESOLUTIONModify the following portions of the code in the Help example to include the two missing commas and the missing apostrophe. Add the Two Missing CommasAdd a comma in the SendMessage Function after the ByVal wMsg As Long argument and after the ByVal wParam As Long argument as follows:
Add an Apostrophe for the CommentAdd an apostrophe (') to remark the "Set the object variable to reference the file you want to see" comment as follows:
Additional query words:
Keywords : kberrmsg kbole IntpOlea |
Last Reviewed: August 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |