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

CRXI, link table fields to exclude data 1

Status
Not open for further replies.

mgason

Technical User
Feb 6, 2003
158
AU
Hi,
I have 3 tables. Each has a field batch_id.
In my record selection statement I select batch_id's from tableA whose timestamps fall between a start and end parameter.
tableB is linked and I get data for those same batch_id's.
tableC is my problem. I want to exclude any batch_id that appears in TableC.

How do I set that up?

thanks
mark
 
Join from TableA to TableC (direction is important here...) Right-click on the link and select Link Options. Select "Left Outer Join". This will cause all of the records in TableA to be included, whether or not they have a corresponding record in TableC.

In the Select Expert, edit the selection criteria and add something like the following:

and IsNull({tableC.batch_id})

This will filter out any records that have a corresponding record in TableC.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
thanks
I think it is working just as desired
mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top