Microsoft KB Archive/141234

{|
 * width="100%"|

PRB: Subform Control's Exit Event Not Activated (7.0, 97)
'Article ID: Q141234

Creation Date: 13-DEC-1995

Revision Date: 02-DEC-1996' The information in this article applies to:


 * Microsoft Access versions 7.0, 97

SYMPTOMS

The macro specified for a subform control's OnExit property does not run if you exit the control by selecting a control on the main form with the mouse.

The macro runs only if you select another subform control.

CAUSE

To activate the Exit event of a control on a subform, you must select another control on the subform.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

 Open the sample database Northwind.mdb.  Create the following new macro and name it Test1: Macro Name  Action ---     Test1        MsgBox Test1 Actions -     MsgBox Message: Control Test  Open the Product List form in Design view. Set the Product Name control's OnExit property to the Test1 macro. Save and then close the form. Open the Categories form in Form view. Select the Product Name field on the subform, and then press ENTER. Note that you receive the message you entered in the Test1 macro. Select the Product Name field again. Click anywhere on the main form. Note that you do not receive the message you entered in the Test1 macro.

REFERENCES

For more information about the OnEnter and OnExit properties, search the Help Index for "Enter event," or ask the Microsoft Access 97 Office Assistant.
 * }

-

"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." '' ©1997 Microsoft Corporation. All rights reserved. Legal Notices.

''

KBCategory: kbusage

KBSubcategory: FmsEvnt

Additional reference words: 7.00 97 8.00