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

one to many relationship

Status
Not open for further replies.

victora

Programmer
Feb 11, 2002
118
US
Hello everybody:

I have 2 tables in a 1 to many relationship. I like to print all records in my '1-table' that are not in the 'many-table'

What type of link shall i used?

Thanks

VA
 
Hi there,

I take it you have a setup like so

Table1 Table2
--------- ---------
Table1ID Table2ID
Table2ID Description

and you want all the table2ID's that do NOT appear in table1??

Hope this hasn't confused you .. but anyway

Select Table2ID From Table2 where Table2ID not in
(Select table2id from Table1)

Transcend
[gorgeous]
 
Ack sorry got a bit confused, they way I showed you above, gets the data in a query then your report will display the data that you want. If you want to do the suppressing on the actual report you do it differently.

How are you getting the data to your report?

Transcend
[gorgeous]
 
Transcend,
My main table is a membership master (key is member#, unique) then my other table is a plan history (key is also member#, duplicates allowed).

I want to list membership records without a plan history.

When u use the visual link, what type of link can i used?

thanks
VA


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top