In a query you can use the IN operator, e.g.
SELECT *
FROM MyTable
WHERE ColumnB IN ("Red", "Blue");
In query design view you'd just enter IN("Red", "Blue") in the criteria row
of ColumnB.
The IN operator does not accept parameters however, so if you wanted to
include parameters in the query so that you are prompted for the colours when
opening the query you'd have to use Boolean OR operation:
SELECT *
FROM MyTable
WHERE ColumnB = [Enter First Colour:]
OR ColumnB = [Enter Second Colour:];
In query design view you'd do this by entering [Enter First Colour:] in the
first Criteria row for ColumnB and [Enter Second Colour:] in the second row.
If you base a form or report on this query you'd be prompted for the colours
when you open the form or report.
aaronwexler said:
I have a column consisting of 4 different items. Sometimes to compare
certain data I want to select 2 of those items. For example I have the
following items in column B: Green, Yellow, Red, Blue. How would I go about
selecting the red and blue items?