S
sanador
I am having a great deal of difficulty with cascading combos on a form
("Injuries Form"). I am trying to add a third combo to a successfully paired
two. I'd like a Body Structures combo to rely upon the value submitted for
Body Part, and that to rely upon the value in Body Area. For example, a
choice of "Upper Extremity"
for Body Area could lead to choosing "Shoulder" in the Part combo and then
"Rotator Cuff" as a Structure. Please see another of my posts below for
further
details:
I used this method successfully in tying together 2 combo boxes, but have
run into a brick wall in attempting to add a third. Summary of data:
Body Areas table (AreaID, AreaName)
Body Parts table (PartID, PartName, AreaID)
Body Structures table (StructureID, StructureName, PartID)
Body Area combo (cboAreas) with AfterUpdate ReQuery
Body Part combo (cboParts) with AfterUpdate ReQuery and tied to Areas Query:
SELECT [Body Parts].PartName
FROM [Body Areas] INNER JOIN [Body Parts] ON [Body Areas].AreaID = [Body
Parts].AreaID
GROUP BY [Body Parts].PartName, [Body Areas].AreaID
HAVING ((([Body Areas].AreaID)=[Forms]![Injuries Form].[cboAreas]));
Body Structure combo (cboStructure1) tied to Parts Query:
SELECT [Body Structures].StructureName
FROM [Body Parts] INNER JOIN [Body Structures] ON [Body Parts].PartID =
[Body Structures].PartID
GROUP BY [Body Structures].StructureName, [Body Parts].PartID
HAVING ((([Body Parts].PartID)=[Forms]![Injuries Form].[cboParts]));
As I said, the first pair of combos is working perfectly. In the third, I
get nothing but a blank drop down list. I've been struggling with this for
some time and can't seem to find any answers. Any help would be appreciated.
("Injuries Form"). I am trying to add a third combo to a successfully paired
two. I'd like a Body Structures combo to rely upon the value submitted for
Body Part, and that to rely upon the value in Body Area. For example, a
choice of "Upper Extremity"
for Body Area could lead to choosing "Shoulder" in the Part combo and then
"Rotator Cuff" as a Structure. Please see another of my posts below for
further
details:
I used this method successfully in tying together 2 combo boxes, but have
run into a brick wall in attempting to add a third. Summary of data:
Body Areas table (AreaID, AreaName)
Body Parts table (PartID, PartName, AreaID)
Body Structures table (StructureID, StructureName, PartID)
Body Area combo (cboAreas) with AfterUpdate ReQuery
Body Part combo (cboParts) with AfterUpdate ReQuery and tied to Areas Query:
SELECT [Body Parts].PartName
FROM [Body Areas] INNER JOIN [Body Parts] ON [Body Areas].AreaID = [Body
Parts].AreaID
GROUP BY [Body Parts].PartName, [Body Areas].AreaID
HAVING ((([Body Areas].AreaID)=[Forms]![Injuries Form].[cboAreas]));
Body Structure combo (cboStructure1) tied to Parts Query:
SELECT [Body Structures].StructureName
FROM [Body Parts] INNER JOIN [Body Structures] ON [Body Parts].PartID =
[Body Structures].PartID
GROUP BY [Body Structures].StructureName, [Body Parts].PartID
HAVING ((([Body Parts].PartID)=[Forms]![Injuries Form].[cboParts]));
As I said, the first pair of combos is working perfectly. In the third, I
get nothing but a blank drop down list. I've been struggling with this for
some time and can't seem to find any answers. Any help would be appreciated.