Microsoft KB Archive/89684

= ACC: Compile All Command Is Enabled After Saving a Module =

Article ID: 89684

Article Last Modified on 5/9/2003

-

APPLIES TO


 * Microsoft Access 1.0 Standard Edition
 * Microsoft Access 1.1 Standard Edition
 * Microsoft Access 2.0 Standard Edition

-



This article was previously published under Q89684



Moderate: Requires basic macro, coding, and interoperability skills.



SUMMARY
This article explains why the Compile All command (in Microsoft Access version 1.x) or the Compile Loaded Modules command (in Microsoft Access version 2.0) is enabled after saving a module.



MORE INFORMATION
After you compile a module by choosing Compile All or Compile Loaded Modules from the Run menu, the Compile All or Compile Loaded Modules command is unavailable (appears dimmed). This is expected because you do not need to recompile a module until you make a change to it.

However, if you save the module by choosing Save from the File menu, the Compile All or Compile Loaded Modules command is available even though you have not made any changes to the module.

Modules are always saved in an uncompiled state. When you save the module, some of the program code in memory actually is &quot;de-compiled&quot; for internal requirements for saving the module. Because there may be uncompiled code in memory, the command is enabled again.

Note that this does not affect startup performance.

NOTE: In Microsoft Access version 7.0 the Compile All and Compile Loaded modules are always available.

Keywords: kbprogramming kbui kbprb KB89684

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.