Eliminating data from a report

H

Hazel

I have not used Access in a while but when doing a query
today for a report, I tried to put in an expression that
would eliminate two separate listings in a field. The
expressions I used in the query were <> "Commissioners"
and underneath in the line marked "or" I entered <>"Board
of Education". As long as I only entered one line it
worked. When I entered both expressions, it did not
eliminate either.
 
R

Rick Brandt

Hazel said:
I have not used Access in a while but when doing a query
today for a report, I tried to put in an expression that
would eliminate two separate listings in a field. The
expressions I used in the query were <> "Commissioners"
and underneath in the line marked "or" I entered <>"Board
of Education". As long as I only entered one line it
worked. When I entered both expressions, it did not
eliminate either.

Think about it some more. You should be using AND, not OR.

You're currently saying if the value is not "Commissioners" OR not "Board of
Education" then include it in the results. A record with "Commissioners" will be
included because it is not equal to "Board of Education" and a record with "Board of
Education" will be included because it is not equal to "Commissioners".
 

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