Executed when the control is activated.
Applies To
-
Check boxes
-
Command buttons
-
Indicators
-
Menu buttons
-
Option buttons
-
Picture boxes
-
Subforms
-
Text boxes
Remarks
When you call ACTIVATE Function (Control), the OnDeactivate Trigger trigger is executed for the previous control and the new control is then activated. After the new control is activated, the code in the OnActivate trigger is executed.
If there is an error occurs in the trigger, the form is closed.
You cannot use this trigger to write to the database.
See Also
© 2010 Microsoft Corporation. All rights reserved.