Error Msg, would create duplicate

  • Thread starter Thread starter Radar
  • Start date Start date
R

Radar

Help! looking a way to bring up the Dup Record in place of the error
msg.
Thanks
 
You could trap the message in the Error event of the form.
DataErr will be 3022 for a duplicate index error.
Display your own MsgBox, and set Response to acDataErrContinue.

Alternatively, use Form_BeforeUpdate to DLookup() the existing record if you
prefer to avoid the failed write attempt.
 

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