Hi
I have tried the following code for a cascading combo box:
Private Sub cboStatustype_AfterUpdate()
On Error GoTo MyErrorHandler
cboSubstatus.RowSource = "Select tblparmedchoices.Substatus " _
& "FROM tblparmedchoices " _
& "WHERE tblparmedchoices.Statustype = '" & Me.cboStatustype & "' " _
& "ORDER BY tblparmedchoices.Substatus;"
End Sub
I have received much help trying to get this working but i thought i might attach an example with the appropriate tables. Basically, im trying to get the substatus combo selection dependent on the statustype. the table tblparmedgroups should help distinguish the selections
any help is much appreciated, i am very lost with this!!
thanks in advance
I have tried the following code for a cascading combo box:
Private Sub cboStatustype_AfterUpdate()
On Error GoTo MyErrorHandler
cboSubstatus.RowSource = "Select tblparmedchoices.Substatus " _
& "FROM tblparmedchoices " _
& "WHERE tblparmedchoices.Statustype = '" & Me.cboStatustype & "' " _
& "ORDER BY tblparmedchoices.Substatus;"
End Sub
I have received much help trying to get this working but i thought i might attach an example with the appropriate tables. Basically, im trying to get the substatus combo selection dependent on the statustype. the table tblparmedgroups should help distinguish the selections
any help is much appreciated, i am very lost with this!!
thanks in advance