I have been reading for a few days now and trying different things and I'm almost getting this to work but I am stuck and hoping someone can help me.
I have 2 combo boxs on my form the first one searchs T_Markets for the field "Market" and the 2nd combo box searchs T_Service_Activities for the field "Activty"
What I want to do is be able to select a market in the first combo box and have a list box display a list of avilible techs in that market number then when I select an activity from the 2nd combo box I want to narrow down the list of techs that can do that activity.
I have it working right now for the first combo box using this code
But I can't figure out how to narrow the list box down by activity as well.
Then I want to be able to click on the name of the tech in the list box and populate text fields based on what fields I have in the T_Service_Tech_Info that are assocaited the the tech name but am unsure how to do that.
Any help would be greatly appreciated!
I have 2 combo boxs on my form the first one searchs T_Markets for the field "Market" and the 2nd combo box searchs T_Service_Activities for the field "Activty"
What I want to do is be able to select a market in the first combo box and have a list box display a list of avilible techs in that market number then when I select an activity from the 2nd combo box I want to narrow down the list of techs that can do that activity.
I have it working right now for the first combo box using this code
Code:
Private Sub market_AfterUpdate()
With Me![TechName]
If IsNull(Me!Market) Then
.RowSource = ""
Else
.RowSource = "SELECT [TechName] " & _
"FROM T_Service_Tech_Info " & _
"WHERE [MarketNumber]=" & Me!Market
End If
End With
End Sub
But I can't figure out how to narrow the list box down by activity as well.
Then I want to be able to click on the name of the tech in the list box and populate text fields based on what fields I have in the T_Service_Tech_Info that are assocaited the the tech name but am unsure how to do that.
Any help would be greatly appreciated!
Last edited: