F
Frederick Wilson
Hello all,
I have a form where I input facility information.
In the form's before update event I check the required fields to ensure
there is data there, among other things.
On the txtFacName ctr I use the Exit event to check if that FacName is
already in the DB. If it is I reset to focus to txtFacName with a msgbox
telling that the FacName is already in use.
If the user decides to cancel the input or deletes everything and then
clicks cancel the Before Update event still fires and gives a warning
that a FacName is required. When you cancel this, I get a system warning
that the record can not be saved because FacName can not contain a null
value.
THE QUESTION:
What is the normal order to handle this situation?
I have a form where I input facility information.
In the form's before update event I check the required fields to ensure
there is data there, among other things.
On the txtFacName ctr I use the Exit event to check if that FacName is
already in the DB. If it is I reset to focus to txtFacName with a msgbox
telling that the FacName is already in use.
If the user decides to cancel the input or deletes everything and then
clicks cancel the Before Update event still fires and gives a warning
that a FacName is required. When you cancel this, I get a system warning
that the record can not be saved because FacName can not contain a null
value.
THE QUESTION:
What is the normal order to handle this situation?