chuckcoleman
Registered User.
- Local time
- Yesterday, 22:51
- Joined
- Aug 20, 2010
- Messages
- 363
OK, I'm feeling kind of dumb this morning. I have a test table with two fields, Field1 and Field2. The data in the table is:
Field1 Field2
a a
a b
b a
b b
c d
If I run a query where Field1 = "b" and Field2 = "b", no problem. I get one row where Field1 = "b" and Field2 = "b". The criteria is on the same row in the Query grid.
If I run a query where Field1 <> "b" AND Field2 <>"b", (on the same "And" row), I get on row 1 "a" and "a" and on row 2 I get "c" and "d". I don't know why I don't ALSO get on row three "a" and "b" and on row four "b" and "a". I THINK my criteria is saying, "Give me all records where Field1 is not equal to "b" AND Field2 is not equal to "b". Both criteria has to be met.
What am I missing? Not enough coffee?
Field1 Field2
a a
a b
b a
b b
c d
If I run a query where Field1 = "b" and Field2 = "b", no problem. I get one row where Field1 = "b" and Field2 = "b". The criteria is on the same row in the Query grid.
If I run a query where Field1 <> "b" AND Field2 <>"b", (on the same "And" row), I get on row 1 "a" and "a" and on row 2 I get "c" and "d". I don't know why I don't ALSO get on row three "a" and "b" and on row four "b" and "a". I THINK my criteria is saying, "Give me all records where Field1 is not equal to "b" AND Field2 is not equal to "b". Both criteria has to be met.
What am I missing? Not enough coffee?