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

How to select record from one table if not present in another

Status
Not open for further replies.

Seabz420

IS-IT--Management
Jul 14, 2003
129
CA
I have 2 tables. One with member info (called A) and the other with card info (called B). How do I go about selecting all the members from table A that don't exist in table B? I'm not familiar with left outer joins and someone mentioned that that might work. Please help!

Evan
 
Join the tables on the appropriate field (perhaps memberid?), and then in the record selection formula (report->Edit Selection Formula->Record) place something like:

isnull(tableb.memberid})

-k
 
Hi,
Just a note: In the Visual Linking Expert, be sure that tableA is the 'driving' table ( the leftmost one)..
That way a equijoin ( the default) will be fine..
[profile]



 
I really don't think this will work without a left join. Create the link from TableA to TableB, then right click on the link->options and choose left join. Then use the following for your record select:

isnull({TableB.memberID})

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top