I have a database with three tables:
tblCompany
CompanyID (PK)
CompanyName
Address
Address2
City
State
Zip
tblPartners
PartnerID (PK)
PFName
PLName
Address
Address2
City
State
Zip
Email
Phone
tblCompany_Partners
CompanyID (PK)
PartnerID (PK)
The reason for the many to many relationship is that some partners are employed by more than one company (ex. Bob Jones works for Corp. Marketing and as an independent contractor under the guise of Bob Jones, Inc.).
When creating a form, I have a combobox with a list of the companies. When you choose a company, the appropriate address shows, etc.
What I'm having difficulty with is creating a subform that will show the partners for that company. The main form is based off of the company table. How do I go about getting a subform that will change when the user chooses a different company? Base the subform off a query? What's the proper child/parent relationship in this situation?
Thanks in advance.
tblCompany
CompanyID (PK)
CompanyName
Address
Address2
City
State
Zip
tblPartners
PartnerID (PK)
PFName
PLName
Address
Address2
City
State
Zip
Phone
tblCompany_Partners
CompanyID (PK)
PartnerID (PK)
The reason for the many to many relationship is that some partners are employed by more than one company (ex. Bob Jones works for Corp. Marketing and as an independent contractor under the guise of Bob Jones, Inc.).
When creating a form, I have a combobox with a list of the companies. When you choose a company, the appropriate address shows, etc.
What I'm having difficulty with is creating a subform that will show the partners for that company. The main form is based off of the company table. How do I go about getting a subform that will change when the user chooses a different company? Base the subform off a query? What's the proper child/parent relationship in this situation?
Thanks in advance.