I have a drop down list in a form that's the first of a cascading set of drop down lists. It loads the list data from a table that lists "Shirt Type." There are some shirt types that are no longer active, so I would like for them to not show in the list on the form. I don't want to delete them, however, because we need the data that they're related to.
I've been able to do this in a simple drop down list by saying SELECT Yard.YardName FROM Yard; WHEN Yard.Active = "Yes" in the Row Source.
With the cascading drop down lists, it looks like it uses events to pull the info it needs. Here is the Got Focus event code:
Private Sub cboType_GotFocus()
'If cboType.Text = "" Then
LoadShirtType
'End If
End Sub
Here is the On Click event code:
Private Sub cboType_Click()
'LoadShirtType
strShirtType = cboType.Text
LoadShirtStyle
End Sub
Can I, and if so, how? Can I modify the code to say something like LoadShirtType WHEN ShirtType.Active = "Yes"?
Any help is appreciated. Thanks!
I've been able to do this in a simple drop down list by saying SELECT Yard.YardName FROM Yard; WHEN Yard.Active = "Yes" in the Row Source.
With the cascading drop down lists, it looks like it uses events to pull the info it needs. Here is the Got Focus event code:
Private Sub cboType_GotFocus()
'If cboType.Text = "" Then
LoadShirtType
'End If
End Sub
Here is the On Click event code:
Private Sub cboType_Click()
'LoadShirtType
strShirtType = cboType.Text
LoadShirtStyle
End Sub
Can I, and if so, how? Can I modify the code to say something like LoadShirtType WHEN ShirtType.Active = "Yes"?
Any help is appreciated. Thanks!