Executed when the control is deactivated.
Check boxes
Command buttons
Indicators
Menu buttons
Option buttons
Picture boxes
Subforms
Text boxes
When you call the ACTIVATE Function (Control) function, the code in the OnDeactivate trigger is executed before the OnActivate Trigger for the new control.
If there is an error in the trigger code, the form is closed.
You cannot use this trigger to write to the database.