Warning when add new record with duplicate primary key

  • Thread starter Thread starter Song
  • Start date Start date
S

Song

I have a form to add new record using navigation button at the bottom. When
fill in all the fields, Access would give a nasty warning message when stID
(primary key) is already exist.

I need code that when user enters duplicate value in stID (which is the
first control on the form), it would be notified such stID already exist and
would locate the existig record and display on the form.
 

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