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

Link subform via an intermediary table

Status
Not open for further replies.

btrini10

IS-IT--Management
Dec 5, 2006
73
US
Hi all

I am trying to include a subform on my main form but the two forms a linked via an internediary table. The main table contains cases that we are working on while the sub-form contains contacts associated with the cases. I have a many to many relationsip between the two forms since any contact can be associated with any case. I have a seperate table joining them that allows for a one to many and many to one relationship.
Is there a way for me to show on a case form, which uses the case table, all associated contacts via a subform.
Any ideas would be helpful.
Hope this makes sense.
 
main table
caseid
....
....

Contact table
contactid
Contactname
.....



Case Contact table
caseid
contactid

Select caseid ,contactid,Contactname....
From Case Contact
inner join Contact table
on Case Contact.contactid = Contact table.contactid
Group by caseid ,contactid, Contactname
 
Thank you. Did not think of creating my sub-form based on a query.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top