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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

no not include table

Status
Not open for further replies.

smiley0q0

Technical User
Feb 27, 2001
356
US
i am a novice with access... so this might be a dumb question...

i have 2 tables, one with 500 usernames (TblMain) and another with 20 of those user names (TblFilter).

i would like to make a query that lists all of the user names in the main table except for the ones that are in the filtered table.

any help will be appreciated..

thanks
 
Sure, use the "Find Unmatched Query Wizard". From the database window, click Queries, then click the "New" button, then select "Find Unmatched Query Wizard." That should get you started.

Ken S.
 
smiley0q0,

The syntax is:

Select *
From YourMainTable
Where YourKeyField Not In
(Select YourKeyfield
From YourOtherTable)

Wayne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top