ACC97: RunCommand Constants Truncated After 25 CharactersLast reviewed: May 12, 1997Article ID: Q168311 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. When you convert any of the following RunCommand macro actions
RunCommand CompileAndSaveAllModules RunCommand ConvertMacrosToVisualBasic RunCommand CreateShortcutMenuFromMacro RunCommand HorizontalSpacingMakeEqual RunCommand MicrosoftAccessHelpTopics RunCommand ObjBrwFindWholeWordOnly RunCommand ObjBrwShowHiddenMembers RunCommand QueryTypeSQLDataDefinition RunCommand QueryTypeSQLPassThrough RunCommand UserLevelSecurityWizard RunCommand VerticalSpacingMakeEqualusing the "Convert Macro to Visual Basic" command, the syntax is truncated during the conversion, and you receive the following error message when you compile the converted macro module:
Compile error: Variable not defined CAUSEThere is a 25 character limitation for the RunCommand constants when using the "Convert Macro to Visual Basic" command. This includes the acCmd prefix that is attached to the constant during the conversion.
RESOLUTIONTo prevent your code from failing with a compile error, modify the syntax for the truncated constants before you compile and run the module.
MORE INFORMATION
Steps to Reproduce Behavior
REFERENCESFor more information about converting macros, search the Help Index for "macros, converting," and then "convert macros to Visual Basic," or ask the Microsoft Access 97 Office Assistant. |
Keywords : CnvProb kbcode kberrmsg McrActn
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |