ACC2: "Cannot Destroy Active Form Instance" Error Message

Last reviewed: May 7, 1997
Article ID: Q132034
The information in this article applies to:
  • Microsoft Access version 2.0

SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

When you attempt to save modifying code stored in a form or report code module, or when you attempt to save a form or report that has had its code modified, you may receive the following error message:

   Cannot destroy active form instance.

When you press the Help button on the error message, Microsoft Access displays the main table of contents for the Microsoft Access Help file.

CAUSE

You cannot modify certain code stored in the form or the report code module This usually occurs when the code is running from the form or report code module and a request is made to close the form before the code is finished. If the form were closed, the code would not be able to run through to completion.

No online Help topic is available to explain this error message.

RESOLUTION

Be sure that the form is not running in Form view when you modify the code. Close the form, or open the form in Design view, when you modify the code. Save the code module, and then open the form in Form view.

The error described above usually occurs after you receive a run-time error and then try to fix the error without resetting the function.

If you have already modified the form or report module code, you may receive the error message when you close the form and are asked if you want to save your changes. If you click Yes, the error message appears. You must click No and abandon any changes you have made in order to exit the form.

STATUS

This behavior no longer occurs in Microsoft Access version 7.0.

MORE INFORMATION

This error frequently occurs when you are debugging library code. If a form in your library is activated and displayed on the screen and an error occurs in your code, the code stops running and an error message is displayed. If you attempt to modify this code and then close the form, you receive the error message. You must close the form prior to making any changes in the code.

This is a trapable error. The error code is 95.


Keywords : FmrCdbeh kberrmsg kbusage
Version : 2.0
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : Info_Provided


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: May 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.