J
John k.
Hello,
i'm having trouble making a query that gives all the
records that match the criterea that a user can enter in a
form.
I have a form with 5 textboxes for user to enter
searchstrings in.
In my query im using wilcards to get al the records as
follows: ((boeken.trefwoord) Like "*" & ([Forms]!
[selecteren]![vaktrefwoord]) & "*") AND
((boeken.Plaatsingscode) Like "*" & ([Forms]![selecteren]!
[vakcode]) & "*"))
This works fine but I want to use OR instead of AND to get
all matches, but when i use OR the wildcards in the query
return all the records when a textfield in the form is
left empty.
Thanks for any help
i'm having trouble making a query that gives all the
records that match the criterea that a user can enter in a
form.
I have a form with 5 textboxes for user to enter
searchstrings in.
In my query im using wilcards to get al the records as
follows: ((boeken.trefwoord) Like "*" & ([Forms]!
[selecteren]![vaktrefwoord]) & "*") AND
((boeken.Plaatsingscode) Like "*" & ([Forms]![selecteren]!
[vakcode]) & "*"))
This works fine but I want to use OR instead of AND to get
all matches, but when i use OR the wildcards in the query
return all the records when a textfield in the form is
left empty.
Thanks for any help