Query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have created a cbo box that I am using to selects locations (citys) in a
field. I have used "Distinct" to elimate the duplicates but I also want to
elimate three locations. They are Verdun, Lasalle, and Montreal. In my
query I have tried the following statements in the Critera location. Not
"Verdun" Or "Lasalle" Or "Montreal". The query returns the following
statement: <>"Verdun" Or "Lasalle" Or "Montreal" this statement does take out
the first location "Verdun" but the two others still remain in the field.
How do I solve this problem?
 
Try the following criteria

<>"Verdun" AND <> "Lasalle" AND <>"Montreal"

Or simpler to to understand and probably as efficient

NOT IN ("Verdun","Lasalle","Montreal")

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 
Thanks, Just what I wanted

John Spencer said:
Try the following criteria

<>"Verdun" AND <> "Lasalle" AND <>"Montreal"

Or simpler to to understand and probably as efficient

NOT IN ("Verdun","Lasalle","Montreal")

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 

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

Back
Top