Parameter query, null value in (table) field

G

Guest

I have a parameter query with many criteria, such as ' Like [Forms]![Find
person]![Title] & "*" '
I though it was working fine until I discovered that it only returned
records where there existed values in the tables for field with criteria.
So in the criteria above, if the record did not include a 'Title' then the
query would omit that record in the output.
There are 6 or 7 criteria so it gets pretty messy in the WHERE scenario!
I do not have any 'Is Null' statements.
Any help appreciated as always!
 
T

Tom Ellison

Dear Graeme:

For this, you may want:

WHERE (SomeColumn = Like [Forms]![Find person]![Title] & "*"
OR SomeColumn IS NULL)

Having the parens I put in will be important if there are other criteria to
be met.

Tom Ellison
 

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