Hi All, i have a form with two cascading combo's that work when the form is opened as a single form however when i place the form on Page 3 of a TabCtl it fails to cascade the correct values. I have include information below explaining the set up.
Could i have some help to get this working please.
frmSiteDetails > TabCtl33 > Page3 > frm ConditionDetails subform with Combo's 1 & 2
Combo 1 = [ElementGroupName]
SELECT ElementGroupID, ElementGroupName FROM tblElementGroup; has Column Count of 2 and Bound Column 2
Combo 2 = [Element]
qrySubElements has SQL:
SELECT tblSubElement.SubElementPKID, tblSubElement.SubElement, tblElementGroup.ElementGroupName, tblSubElement.SubElementID
FROM tblElementGroup INNER JOIN tblSubElement ON tblElementGroup.[ElementGroupID] = tblSubElement.[SubElementID]
WHERE (((tblElementGroup.ElementGroupName)=[Forms]![frmConditionDetails]![ElementGroupName]));
has Column Count of 4 and Bound Column 2
qrySubElements for [Element]has four fields:
[SubElementsPKID]
[SubElement]
[ElementGroupName] Pointing to [Forms]![frmConditionDetails]![ElementGroupName]
[SubElementID]
In the AfterUpdate and OnChange events for [ElementGroupName] i have this VBA
Private Sub ElementGroupName_AfterUpdate()
Me.ELEMENT.Requery
End Sub
Private Sub ElementGroupName_Change()
Me.ELEMENT.Value = ""
End Sub