Article ID: 200646 - Last Review: December 12, 2002 - Revision: 1.0 ACC2000: Cannot Use RunCommand acCmdSaveModuleAsText in CodeThis article was previously published under Q200646 Moderate: Requires basic macro, coding, and interoperability skills.
On This PageSYMPTOMS
When you run code that contains the RunCommand method with the
acCmdSaveModuleAsText constant, you may receive the following error
message:
The command or action 'SaveModuleAsText' isn't available now.
CAUSE
Microsoft Access cannot save a code module while code is running.
RESOLUTION
You can use the following method to save a code module programmatically:
MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESFor more information about the OutputTo method, click Microsoft Access Help on the Help menu, type OutputTo in the Office Assistant or the Answer Wizard, and then click Search to view the topic. For more information about the RunCommand method, click Microsoft Access Help on the Help menu, type RunCommand method in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
| Article Translations
|

Back to the top
