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

trouble with record selection

Status
Not open for further replies.

exc

Technical User
Jun 6, 2001
6
0
0
US
i have 2 tables...parent and child. one to many relationship. i need to pull records from the parent table based upon event codes in the child.

example...i need to pull a parent record where in the child table there exists a record for event 1 and 2 but not 3.

what type of formula can get this done?

eric
 
Hi,

Assuming your event1,2 and 3 are string fields then

not (isnull({event1}) or isnull({event2})) and
isnull({event3})

or

(event1 <> &quot;&quot;) and (event2 <> &quot;&quot;) and (event3=&quot;&quot;)

depending on whether your empty fields have null values or zero length string values.

Hth,
Geoff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top