D
Dave Birley
My Main Form has as its Record Source the Product_Family table. This is the
same table that is the Record Source for the "grandparent" control, a
combobox. Changes in the combobox are reflected in the first subform
"Company" Which has Company Subform as its Source Object. The controls on
this subform are populated by Query2 which is based on the Company table with
reference to the Product_Family table in this WHERE clause:
WHERE (((Company.Product_ID)=[Me]![Parent]![cboProductFamily].[Product_ID])).
So far so good. Works exactly the way I expect it to -- Company subform
revises its content every time an item in the Product combobox changes.
There is a table called tblGroup which manages the relationship between the
Product and the Company tables, which [auto-]generated a unique ID for each
possible combination.
The final table, called tblItems has reference to the Group Table. In the
Relationships, these tables are all linked together by the appropriate IDs:
Product_Family->Company->Group->Items
The Groups Subform has Group Subform as its Source Object, and the Record
Source for its controls is Query1:
SELECT Group.Group_Name, Item.Item, Item.Reference_Address, Company.Company_ID
FROM Company INNER JOIN ([Group] INNER JOIN Item ON Group.Group_ID =
Item.Group_ID) ON Company.Company_ID = Group.Company_ID;
However, when I want to link the Group Subform up to make it refresh on
changed selection in the Company Subform, the Master/Child link offerings
present only items from the Product_Family table for master. I need it to be
looking to the Group table, or else looking to the Company_ID determined by
the pointer in the Company Subform.
It is frustrating to be this close, and just missing some basic component --
have I given enough description here to allow someone to get the drift of
what I need?
Specifically I need the Group Subform to update when the selected item in
the Company Subform changes, and always to display only the Distinct Items
related to the Product_Family/Company selections.
same table that is the Record Source for the "grandparent" control, a
combobox. Changes in the combobox are reflected in the first subform
"Company" Which has Company Subform as its Source Object. The controls on
this subform are populated by Query2 which is based on the Company table with
reference to the Product_Family table in this WHERE clause:
WHERE (((Company.Product_ID)=[Me]![Parent]![cboProductFamily].[Product_ID])).
So far so good. Works exactly the way I expect it to -- Company subform
revises its content every time an item in the Product combobox changes.
There is a table called tblGroup which manages the relationship between the
Product and the Company tables, which [auto-]generated a unique ID for each
possible combination.
The final table, called tblItems has reference to the Group Table. In the
Relationships, these tables are all linked together by the appropriate IDs:
Product_Family->Company->Group->Items
The Groups Subform has Group Subform as its Source Object, and the Record
Source for its controls is Query1:
SELECT Group.Group_Name, Item.Item, Item.Reference_Address, Company.Company_ID
FROM Company INNER JOIN ([Group] INNER JOIN Item ON Group.Group_ID =
Item.Group_ID) ON Company.Company_ID = Group.Company_ID;
However, when I want to link the Group Subform up to make it refresh on
changed selection in the Company Subform, the Master/Child link offerings
present only items from the Product_Family table for master. I need it to be
looking to the Group table, or else looking to the Company_ID determined by
the pointer in the Company Subform.
It is frustrating to be this close, and just missing some basic component --
have I given enough description here to allow someone to get the drift of
what I need?
Specifically I need the Group Subform to update when the selected item in
the Company Subform changes, and always to display only the Distinct Items
related to the Product_Family/Company selections.