CharlotteM
8 years agoQrew Assistant Captain
Need form with one parent and two children, from one of the children
We have three tables:
Companies (parent)
-- Companies can be either client companies, or vendor companies
Opportunities (children of Companies)
Vendors (children of Companies) which are.... Companies as well.
The Vendors table has two fields that are keys into the Company table - one is the Client company, and one is the Vendor.
So for example, we might have a Company "Acme" with two vendors, "ABC Bank" and "XYZ Bank." This is three records in the Company table, and two records in the Vendor table.
This all works fine, except that now, I need a form from Opportunities that shows
> information from Opportunities (OK, it's there)
> information from Company (OK, using lookup fields to get it)
> a list of the vendors for the Company that is related (1:1) as the parent to the opportunity.
How can I get this list of vendors? I have it on the Company form in a tab, but I need it on the Opportunity form. I've tried several variations of table relationships, but can't find one that works.
Companies (parent)
-- Companies can be either client companies, or vendor companies
Opportunities (children of Companies)
Vendors (children of Companies) which are.... Companies as well.
The Vendors table has two fields that are keys into the Company table - one is the Client company, and one is the Vendor.
So for example, we might have a Company "Acme" with two vendors, "ABC Bank" and "XYZ Bank." This is three records in the Company table, and two records in the Vendor table.
This all works fine, except that now, I need a form from Opportunities that shows
> information from Opportunities (OK, it's there)
> information from Company (OK, using lookup fields to get it)
> a list of the vendors for the Company that is related (1:1) as the parent to the opportunity.
How can I get this list of vendors? I have it on the Company form in a tab, but I need it on the Opportunity form. I've tried several variations of table relationships, but can't find one that works.