G
Guest
I have code attached to a Text Box's OnExit event that forces the user to
enter a value in this field by giving a warning and setting the Focus back to
this field.
I also have code to run the SetFocus method on this Text Box when a New
Record is entered.
My problem is that if I want to close the screen after data entry and the
user has hit New Record, the Text Box's OnExit event is being called when the
form closes.
The field is a required field, but I don't want the user to fill in all the
fields and then get the error message at the end of the data entry on the
form.
How do I disable the Text Box's event when the form is being closed?
enter a value in this field by giving a warning and setting the Focus back to
this field.
I also have code to run the SetFocus method on this Text Box when a New
Record is entered.
My problem is that if I want to close the screen after data entry and the
user has hit New Record, the Text Box's OnExit event is being called when the
form closes.
The field is a required field, but I don't want the user to fill in all the
fields and then get the error message at the end of the data entry on the
form.
How do I disable the Text Box's event when the form is being closed?