G
google3luo359
I have a DoCmd.Close button to close a form that does close its form.
However a desired error msg. is not shown despite having
DoCmd.SetWarnings True at the top of the function.
If one attempts to add a record that violates a field's property, the
field correctly does not accept it. However the form is closing without
notifying the user that the record was _not accepted!
Strangely, when the 'x' in the top corner is used to close the form,
Access notifies the user that the record was not accepted.
How can I get Access to notify the user when using the command button?
Once that is working properly I'd like to use my own message instead of
Access'.
TIA Ric
However a desired error msg. is not shown despite having
DoCmd.SetWarnings True at the top of the function.
If one attempts to add a record that violates a field's property, the
field correctly does not accept it. However the form is closing without
notifying the user that the record was _not accepted!
Strangely, when the 'x' in the top corner is used to close the form,
Access notifies the user that the record was not accepted.
How can I get Access to notify the user when using the command button?
Once that is working properly I'd like to use my own message instead of
Access'.
TIA Ric