Duplicate Entries in Phone and Email Fields

G

Guest

Is there a way to prevent duplicate entries in a table that has phone and
email fields that are blank, but the blank ones need to stay but duplicate
numbers and emails of value need to be prevented. I don't know anything
about code, just work in Access, so if anyone could help it would be greatly
appreciated.
 
D

Douglas J Steele

Create a unique index on the field, and tell it to ignore nulls.

You do this by select Indexes from the View menu when you've got the table
open in Design mode. Select a name for the index in the first column (the
name can be anything you want), select the field in the second column. The
sort order doesn't matter.
 
G

Guest

Thank you very much!

Douglas J Steele said:
Create a unique index on the field, and tell it to ignore nulls.

You do this by select Indexes from the View menu when you've got the table
open in Design mode. Select a name for the index in the first column (the
name can be anything you want), select the field in the second column. The
sort order doesn't matter.
 

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

Top