Querys

sandrao

Registered User.
Local time
Today, 16:36
Joined
Sep 6, 2007
Messages
34
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 statement 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?
 
Replace your "Or" parts with "And".
Code:
<>"Verdun" AND <> "Lasalle" AND <> "Montreal"
In your case, every time Lasalle or Montreal come up, the " <> Verdun" part is true and so the other two names will appear.
 
Thanks Works just great
 
No problem.
Thanks for letting me know it works.
 

Users who are viewing this thread

Back
Top Bottom