Executed immediately after a form is removed from the screen, but before it has been closed.
This trigger is called by a user action, such as when the user clicks Close or when the CurrForm.CLOSE Function (Form, Table) function is called. Before this trigger is executed, the OnQueryCloseForm Trigger trigger is executed.
If there is an error in the trigger code, the form is closed.
You can write to the database from within this trigger.