G
gaugust
In Access 2003 I would like to trap an error and display a custom error
message when a user forgets to enter the value for a key field on a data
entry form. Currently the user gets the error message "Index or primary key
cannot contain a Null value" when the key field on the form is left blank. I
tried to trap this error in the before update event of the form, the before
update event of the key field and the on error event of the form but the
error occurs and the system message displays before any of these events. How
can I display a custom error message in leu of the system error message?
Thanks.
message when a user forgets to enter the value for a key field on a data
entry form. Currently the user gets the error message "Index or primary key
cannot contain a Null value" when the key field on the form is left blank. I
tried to trap this error in the before update event of the form, the before
update event of the key field and the on error event of the form but the
error occurs and the system message displays before any of these events. How
can I display a custom error message in leu of the system error message?
Thanks.