Using a field as criteria

V

Val

Hi there,

I am tring to query a set of data but exclude any lines
that have the same information as another table.

Example:
Say I have a list of social security numbers of everyone
in my company and I am looking to leaveout anyone who's
social security number is ina a bad employee table how do
I get the query to have a negitive relationship or use
that field in the second table as criteria?
 
A

Allen Browne

There is an Unmatched Query wizard that can give you this result.

Basically, you end up with an outer join (double-click the line joining the
2 tables in query design), where the related table's foreign key is null
(i.e. it doesn't match anything).
 

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

Similar Threads

Access Dcount (multiple criteria) 3
Taken Part of a Record Field 2
Update Query 2
Link Question 1
Update Queries 6
Excel VBA to move cursor from 1 cell to another, once original cell is filled with data. 3
Employee Query 2
Conditional Criteria 4

Top