ACC97: RunCommand Constants Truncated After 25 CharactersID: Q168311
|
Moderate: 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 VerticalSpacingMakeEqual
Compile error:
Variable not defined
There 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.
To prevent your code from failing with a compile error, modify the syntax for the truncated constants before you compile and run the module.
Macro Name Macro Action
---------------------------------
Macro1 RunCommand
RunCommand
RunCommand
Macro1 Actions
--------------------------------------
RunCommand
Command: CompileAndSaveAllModules
RunCommand
Command: ConvertMacrosToVisualBasic
RunCommand
Command: UserLevelSecurityWizard
For 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 : kbcode kberrmsg McrActn
Version : 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 30, 1999