mutliple field search

G

Guest

I had a previous question about using like in my query to search multiple
fields and give me results, but when i ran my query it would be missing
records. Here is the code that i am using to perform the search WHERE
(((MAIN.LNAME) Like '*' & [forms]![form1]![text2] & "*" Or (MAIN.LNAME) Is
Null) AND ((MAIN.FNAME) Like '*' & [forms]![form1]![text0] & "*" Or
(MAIN.FNAME) Is Null)); any help would be great on this.

-alfred
 
G

Guest

hi,
first get rid of the apersands and replace them with the
work AND.
Ampersands are concantinators.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top