I have a combobox where the available entries are supposed to be dependent on another combobox.
My problem is that when I put this form on a subform by putting it in a tab, I get an error. This combobox works when it's not in the tab of the subform.
The row source for the dependent combobox is:
SELECT tblCaseID.CaseID, tblCaseID.CaseType FROM tblCaseID WHERE (((tblCaseID.ClientID)=Forms!FrmNotesTabSubform!cboClientID)) ORDER BY tblCaseID.CaseID;
The AfterUpdate for cboClientID is:
Private Sub cboClientID_AfterUpdate()
Me.cboCase = Null
Me.cboCase.Requery
End Sub
The subform is set up with the relationship on ClientID, and I think this is where my problem is, but I do not know how to fix it.
My problem is that when I put this form on a subform by putting it in a tab, I get an error. This combobox works when it's not in the tab of the subform.
The row source for the dependent combobox is:
SELECT tblCaseID.CaseID, tblCaseID.CaseType FROM tblCaseID WHERE (((tblCaseID.ClientID)=Forms!FrmNotesTabSubform!cboClientID)) ORDER BY tblCaseID.CaseID;
The AfterUpdate for cboClientID is:
Private Sub cboClientID_AfterUpdate()
Me.cboCase = Null
Me.cboCase.Requery
End Sub
The subform is set up with the relationship on ClientID, and I think this is where my problem is, but I do not know how to fix it.