ACC: Compile All Command Is Enabled After Saving a Module

Last reviewed: June 6, 1997
Article ID: Q89684
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0

SUMMARY

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

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 "de-compiled" 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 : kbprg kbui PgmOthr
Version : 1.0 1.1 2.0
Platform : WINDOWS
Hardware : x86
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 6, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.