If the field is from a table, you can open the table in design view, select
the field, and in the lower pane set its Indexed property to:
Yes. No Duplicates.
If it is a calculated field, you can use the BeforeUpdate event of your form
(not control) to test for duplicates. The form can be in Datasheet view if
you want it to look like a query.
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.