Hey all,
So I have made a search form which looks up info on a table using VBA in such a way (text box version)
If Not IsNull(Me.TxtFitLastname) Then
strWhere = strWhere & "([Last Name] Like ""*" & Me.TxtFitLastname & "*"") AND "
End If
This goes on for several variables that add to a large string which then is applied to the filter of the form.
My question is...
In my table that is being filtered I have a couple of fields which are based off other tables that utilize a combo box where the user can pick multiple values off the combo list. Back on my filter form I am have another combobox (this one does not need to let the searcher to pick multiple values). For the life of me I can not get a stable code that will add this to some kind of string that in turn can be directed at the filter. I know combos don't like WHERE clauses, but I don't know how to approach the issue.
Long story short I need to search for values built off a combo field in a table using VBA.
Thanks in advance!
So I have made a search form which looks up info on a table using VBA in such a way (text box version)
If Not IsNull(Me.TxtFitLastname) Then
strWhere = strWhere & "([Last Name] Like ""*" & Me.TxtFitLastname & "*"") AND "
End If
This goes on for several variables that add to a large string which then is applied to the filter of the form.
My question is...
In my table that is being filtered I have a couple of fields which are based off other tables that utilize a combo box where the user can pick multiple values off the combo list. Back on my filter form I am have another combobox (this one does not need to let the searcher to pick multiple values). For the life of me I can not get a stable code that will add this to some kind of string that in turn can be directed at the filter. I know combos don't like WHERE clauses, but I don't know how to approach the issue.
Long story short I need to search for values built off a combo field in a table using VBA.
Thanks in advance!