Query Criteria problem.

Monti2

New member
Local time
Today, 10:36
Joined
Dec 5, 2002
Messages
7
I am trying to run a query as folllows:

I have a field in a table with 100 records called Colour, which contains 10 different colours.

I am trying to set the criteria so the results contain all records except where the colour is "Black" or "White".

I can achieve this by listing the 8 colours that I require in the results, however I would like to know how to achieve this using NOT and just Black, White.

I would also like to know how to code this using SQL.

I appreciate any help.

Thanks
 
SELECT tblColours.Colours
FROM tblColours
WHERE (((tblColours.Colours)<>"White" And (tblColours.Colours)<>"Black"));
 
Or, in query design view enter <> "white" and <> "black" in the criteria rows for colour.

Sames as Mile-o-phile, just easier if you don't use the SQL view often.
 

Users who are viewing this thread

Back
Top Bottom