Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exclude Data

Status
Not open for further replies.

bdjb

Technical User
Oct 29, 2002
292
US
Hello
I have two tables in a query, one has my data, the other have a list of data I want to exclude (the main table has e-mail addresses etc, the exclude table has list of test e-mails etc). I have them joined on e-mail, but I'm not sure how to write the criteria to exclude everything from the one table? MS Access 2003.

Thanks in advance
 
Code:
Select Email.emailAddress
from tblEmail
left join Testemail
on Email.emailAddress=Testemail.emailAddress
Where Testemail.emailAddress is null
 
Thanks for the help, that did it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top