ACC2: "Cannot Destroy Active Form Instance" Error Message

ID: Q132034


The information in this article applies to:


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          : kberrmsg kbusage FmrCdbeh 
Version           : 2.0
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: May 3, 1999