I'm trying to get some cascading drop downs to work.
I have a table (tblRequirementsICS) with the following fields
txtCitation (primary key)
txtTitle
txtPriorityGroup
txtIssue
memEEIDescription
I have a sub-form to select through the table options to arrive at the correct citation number.
So, I start with a drop down of the three Titles, called cboRequirementName
Under the AfterUpdate, I've put the following code:
CODE
Private Sub cboRequirementName_AfterUpdate()
'Set PriorityGroup combo box to be limited by selected Requirement Set
Me.cboPriorityGroup.RowSource = "SELECT txtPriorityGroup FROM tblRequirementsICS " & _
" WHERE txtTitle = '" & Me.cboRequirementName & "' " & _
" ORDER BY txtPriorityGroup"
EnableControls 'a function that is currently working
End Sub
'Set PriorityGroup combo box to be limited by selected Requirement Set
Me.cboPriorityGroup.RowSource = "SELECT txtPriorityGroup FROM tblRequirementsICS " & _
" WHERE txtTitle = '" & Me.cboRequirementName & "' " & _
" ORDER BY txtPriorityGroup"
EnableControls 'a function that is currently working
End Sub
Right now, I select the cboRequirementName, and the cboPriorityGroup has no entries.
