Tim
One approach would be to use a new table structure.
One of my applications has to handle the situation that one entity (person,
org, agency, ...) can have zero, one or many addresses (and phone numbers,
and email addresses). To manage this requirement, there are three tables
(using your email example):
tblEntity
tblEmailAddress
trelEntityEmailAddress
This third table holds valid combinations of Entity and EmailAddress. This
allows one Entity to have many (or even no) email addresses, and one
EmailAddress to be used by many Entities (not so necessary anymore, with the
proliferation of free emailer ISPs, but each/every person in a family may
still use the same generic email address).
If you index the trelEntityEmailAddress columns to prevent duplicate Entity
X EmailAddress combinations, this would achieve your requirement as I
understood it (i.e., no Entity should have duplicate email addresses).
--
Regards
Jeff Boyce
Microsoft Office/Access MVP
http://mvp.support.microsoft.com/
Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/
Microsoft Registered Partner
https://partner.microsoft.com/
"Tim McGavin" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I currently have a column called "email". I have prevented duplicates
from
> existing by changing the "Indexed" property to have a "Yes (No
Duplicates)"
> value.
>
> But I just recently added another column called "email2". How can I
prevent
> duplicates from existing between both columns together?
>
> In other words, if I enter an email address in "email" and it exists
> somewhere in "email2" then I would like for the system to catch that as a
> duplicate.
>
> What are the best ways to do this?
>
> Tim
>
>