G
Gremlin
I am creating a form to have the contents of one list change depending on the
user's choice. I have used a table for the main combo box and several tables
for the dependent combo box. I entered a code that has a table that is
assigned as the row source of the main combo box and there are 4 more tables
which will provide in theri turn the row source. My problem is, when I am
looking at the form and click on the pull down arrow, only a blank space
appears--no options from the tables. what did I do wrong?
Private Sub cbotypeSx_AfterUpdate()
On Error Resume Next
Select Case cboTypeSx.Value
Case "Obesity Signs and Symptoms"
cboDx.RowSource = "obestbl"
Case "GI"
cboDx.RowSource = "GItbl"
Case "Abdominal Pain"
cboDx.RowSource = "abdtbl"
Case "Cardiac Symptoms"
cboDx.RowSource = "cardtbl"
Case "Endocrine"
cboDx.RowSource = "endotbl"
Case "Lipid disorders"
cboDx.RowSource = "Liptbl"
Case "Respiratory"
cboDx.RowSource = "Resptbl"
Case "Urinary symptoms"
cboDx.RowSource = "Urintbl"
End Select
End Sub
user's choice. I have used a table for the main combo box and several tables
for the dependent combo box. I entered a code that has a table that is
assigned as the row source of the main combo box and there are 4 more tables
which will provide in theri turn the row source. My problem is, when I am
looking at the form and click on the pull down arrow, only a blank space
appears--no options from the tables. what did I do wrong?
Private Sub cbotypeSx_AfterUpdate()
On Error Resume Next
Select Case cboTypeSx.Value
Case "Obesity Signs and Symptoms"
cboDx.RowSource = "obestbl"
Case "GI"
cboDx.RowSource = "GItbl"
Case "Abdominal Pain"
cboDx.RowSource = "abdtbl"
Case "Cardiac Symptoms"
cboDx.RowSource = "cardtbl"
Case "Endocrine"
cboDx.RowSource = "endotbl"
Case "Lipid disorders"
cboDx.RowSource = "Liptbl"
Case "Respiratory"
cboDx.RowSource = "Resptbl"
Case "Urinary symptoms"
cboDx.RowSource = "Urintbl"
End Select
End Sub