J
John W. Vinson
John:
That is right.
Your query functions sort of like a filter within a filter. You filter for
one set of criteria, then within that filter, you filter for another. In
your query, it working like that. The end result of it is that it return
only two records, those that have phone numbers in all four fields. It seems
that it working in reverse.
Maybe this is beyond what Access can handle.
No, Access can handle far more complex queries than this! Try getting rid of
the extra parentheses:
SELECT Addresses.Phone1, Addresses.Phone2, Addresses.Phone3,
Addresses.Phone4
FROM Addresses
WHERE Addresses.Phone1<>"N/A" AND Addresses.Phone2<>"N/A" AND
Addresses.Phone3<>"N/A" AND Addresses.Phone4<>"N/A";
Or, reverse the logic:
SELECT Addresses.Phone1, Addresses.Phone2, Addresses.Phone3,
Addresses.Phone4
FROM Addresses
WHERE NOT (Addresses.Phone1="N/A" AND Addresses.Phone2="N/A" AND
Addresses.Phone3="N/A" AND Addresses.Phone4="N/A");
John W. Vinson [MVP]