Dear All,
i have a from , with some 2 text boxes at the header of ther form, and i have a button this code below is behind the button when i press the button it should filter the data matchin the values from text boxes and thoes fields on the form.
NOW, the problem is that it do filter but one by one
i want to combine these two sentences with OR or AND i dont kwo in to one statment where when i click the button it shoud do multiple filter.
regards
Private Sub Command118_Click()
DoCmd.ApplyFilter , "province = '" & Forms!filter_form!prof & "'"
DoCmd.ApplyFilter , "name_of_agency = '" & Forms!filter_form!agenf & "'"
End Sub
i have a from , with some 2 text boxes at the header of ther form, and i have a button this code below is behind the button when i press the button it should filter the data matchin the values from text boxes and thoes fields on the form.
NOW, the problem is that it do filter but one by one
i want to combine these two sentences with OR or AND i dont kwo in to one statment where when i click the button it shoud do multiple filter.
regards
Private Sub Command118_Click()
DoCmd.ApplyFilter , "province = '" & Forms!filter_form!prof & "'"
DoCmd.ApplyFilter , "name_of_agency = '" & Forms!filter_form!agenf & "'"
End Sub