ACC97: Compile Error with Converted Macro with RunSQL StmtLast reviewed: August 29, 1997Article ID: Q167066 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. When you convert a macro to Visual Basic for Applications code using the "Save as Visual Basic Module" command, and the macro contains a RunSQL action that includes a SQL Statement that was copied from a query's SQL View window, you may receive a compile error when you try to compile the module.
CAUSEThe RunSQL Statement is not being correctly copied to the module during the conversion and is causing the module to fail.
RESOLUTIONThere are two ways to resolve this problem:
STATUSMicrosoft has confirmed this to be a problem in Microsoft Access 97. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Problem
REFERENCESFor more information about using the "Macro to Visual Basic" command, search the Help Index for "converting macros," and then "converting macros to Visual Basic," or ask the Microsoft Access 97 Office Assistant. Keywords : kbprg Version : 97 Platform : WINDOWS Hardware : x86 Issue type : kbbug Solution Type : kbworkaround |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |