I need to have a form filter from two differnt fields.
First the user needs to be able to pick from a list of categories.
Then the user needs to be able to choose a size from the results of
the category.
If i set the parameters in the query, then they can't choose from the
list.
This is what I came up with, but when you use the second drop down
box, it doesn't pull from just teh results of the first box.
Private Sub Combo1_Change()
Dim strFilter
strFilter = "[VesselCategory]=""" & Combo1.Text & """"
Form_AllJobs.Vi sible = True
Form_AllJobs.Fi lter = strFilter
Form_AllJobs.Fi lterOn = True
Form_AllJobs.Re fresh
End Sub
Private Sub Combo32_Change( )
Dim strFilter
strFilter = "[Vesselsizerange]=""" & Combo32.Text & """"
Form_AllJobs.Vi sible = True
Form_AllJobs.Fi lter = strFilter
Form_AllJobs.Fi lterOn = True
Form_AllJobs.Re fresh
End Sub
First the user needs to be able to pick from a list of categories.
Then the user needs to be able to choose a size from the results of
the category.
If i set the parameters in the query, then they can't choose from the
list.
This is what I came up with, but when you use the second drop down
box, it doesn't pull from just teh results of the first box.
Private Sub Combo1_Change()
Dim strFilter
strFilter = "[VesselCategory]=""" & Combo1.Text & """"
Form_AllJobs.Vi sible = True
Form_AllJobs.Fi lter = strFilter
Form_AllJobs.Fi lterOn = True
Form_AllJobs.Re fresh
End Sub
Private Sub Combo32_Change( )
Dim strFilter
strFilter = "[Vesselsizerange]=""" & Combo32.Text & """"
Form_AllJobs.Vi sible = True
Form_AllJobs.Fi lter = strFilter
Form_AllJobs.Fi lterOn = True
Form_AllJobs.Re fresh
End Sub
Comment