Hello all!
I'm working on creating 3 combo drop downs (cascading). I can get combo3 to work based on what's selected in combo1 but I want it to be based on whats selected in combo1 AND combo2. I'm currently using this coding to make the combo3 work:
Private Sub Program_Component_AfterUpdate()
Activity.RowSource = "Select Activity.Activity " & _
"FROM Activity " & _
"WHERE Activity.Domain = '" & Domain.Value & "' " & _
"ORDER BY Activity.Activity;"
End Sub
My question is how do I add an "AND" to the WHERE line so that it looks at what's selected in combo2 as well???
I'm working on creating 3 combo drop downs (cascading). I can get combo3 to work based on what's selected in combo1 but I want it to be based on whats selected in combo1 AND combo2. I'm currently using this coding to make the combo3 work:
Private Sub Program_Component_AfterUpdate()
Activity.RowSource = "Select Activity.Activity " & _
"FROM Activity " & _
"WHERE Activity.Domain = '" & Domain.Value & "' " & _
"ORDER BY Activity.Activity;"
End Sub
My question is how do I add an "AND" to the WHERE line so that it looks at what's selected in combo2 as well???