Error Message Trapping

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am developing a form that I need to trap the error message "Index or
Primary Key cannot contain a null value". The error occurs when a field in
entered and then deleted by backspacing or highlighting. Thanks
 
This is an engine-level message, so you can trap it in the Error event of
your form.

The simplest solution is to teach the user to press Esc to undo the entry.
Otherwise they are not allowed out of the field until they provide a valid
value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top