check for duplicates before saving record in Access 2010 -


in saving data form, want check duplicate email , password. if email , password in table, prompt message. tried many control event events not fired; nothing happened. maybe code wrong, please , guide me how check duplicate email , password.

thanks.

it considered practice define validations , constraints @ table level whenever possible. in doing ensure restrictions enforced no matter how data added or updated (e.g., via import, append query, etc.) , don't have remember add validation rule(s) every form build.

in case "check duplicate email , password" defining unique index on table. table open in design view click "indexes" button on "design" tab of ribbon...

ribbon

...and define unique index on [password] , [email] fields:

indexes


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -