Occurs for every page in a form when the OK button is clicked.
Use this event to write code that performs any desired action when the user clicks the OK button in a form. This event is also sent to the Form object after it has been sent to all Page objects.
The OnOK event will not occur if a result of False is returned (ThisEvent.Result = False) by any Control object's OnValidate event handler or the Page object's OnValidate event handler.
This event also occurs when the form is closed via the Form object's Close method (if the OK argument is set to True).