I´m having a search form with mutliple fields which is working great (implemented the search solution of Allen Browne) except for one part.
I need to have one text box that searches 30 (!) columns of the attached query. No matter what I try in VBA, I can´t get it to work properly. I have no trouble having it sarch over 1 column but how to make that one text box search over 30 columns to display the result?
What I have to search over 1 column:
If I just add to this code with OR it doesn´t seem to do the trick. Any suggestions?
I need to have one text box that searches 30 (!) columns of the attached query. No matter what I try in VBA, I can´t get it to work properly. I have no trouble having it sarch over 1 column but how to make that one text box search over 30 columns to display the result?
What I have to search over 1 column:
Code:
If Not IsNull(Me.txtFiltersite1) Then
strWhere = strWhere & "([D1_1] Like ""*" & Me.txtFiltersite1 & "*"") AND "
End If
If I just add to this code with OR it doesn´t seem to do the trick. Any suggestions?