ACC: Cannot Close Form from Control's OnExit PropertyLast reviewed: August 29, 1997Article ID: Q115574 |
The information in this article applies to:
SYMPTOMSNovice: Requires knowledge of the user interface on single-user computers. When you try to close a form from one of the following:
This action can't be run while processing a form or report event. CAUSEA macro or procedure that closes the active form is called from a control's OnExit, OnEnter, OnLostFocus, or OnGotFocus property.
RESOLUTIONTo work around this problem, add a new control containing a flag to the form. Then, refer to that flag's value before closing the form, as demonstrated in the following example:
STATUSMicrosoft has confirmed this to be a problem in Microsoft Access 2.0, 7.0, and 97. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Problem
Keywords : kberrmsg kbprg PgmOthr FmsEvnt Version : 2.0 7.0 97 Platform : WINDOWS Hardware : x86 Issue type : kbbug Solution Type : kbworkaround |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |