PDA

View Full Version : Not Not working


tbrown
15th February 2004, 11:06.44 AM
I am trying to filter out all races at Aqu, Bel, or Sar in an Access query, but not matter how I put in that criteria, I keep getting all those records.
Help says to use Not "Aqu" or Not "bel" or Not "sar", but that dosn't work.
Any suggestions?

Thanks

Rick
15th February 2004, 11:14.30 AM
Try

Not "aqu" or "bel" or "sar"

Donnie
15th February 2004, 11:32.05 AM
or try the words

Not Like "AQU" or Not Like "Bel"

MikeDee
15th February 2004, 11:35.23 AM
I think you need to use the "and" connector rather then the "or"

try
<>aqu and <> bel and <> sar

Rick
15th February 2004, 11:36.00 AM
My book says the solution is

Not ("aqu" or "bel" or "sar")

Victor
15th February 2004, 04:44.14 PM
MikeDee's way works for me.

tbrown
15th February 2004, 05:56.03 PM
Thanks, guys.
Both ways work.

MVMcKee
15th February 2004, 09:43.24 PM
Not "aqu" or "bel" or "sar"

Maybe it's late, but I read the above as :
Give me everything except Aqueduct.
Does the NOT carry forward to Belmont and Saratoga?

Rick
15th February 2004, 10:43.08 PM
Yes. But the book says to use the brackets.

A quick test shows it works just like you have it.