Getting Access to Look Past the First Criterion

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

All,

I have an Access 2K2 database of about 34 records. These records track up to
16 milestones each (minimum is 5) and the status of each milestone is given
in a color: red, yellow, green, white or gray. I need to pull out records
that have ANY milestone (I don't care which) that is either red, yellow or
gray.

However, when I use the OR statement ("red" or "yellow" or "gray) in the QBE
window, I only get the 8 records whose first milestone is one of those
colors. It will not pull up a record whose first milestone may be green, but
the 2nd or 3rd may be one of the colors I need to see. By my count, there
should be about 15 records returned.

Any ideas would be appreciated.
 
WHERE Milestone1 = 'red' OR Milestone1 = 'yellow' OR Milestone1 = 'gray' OR
Milestone2 = 'red' OR Milestone2 = 'yellow' etc., etc., etc.

When I see something like this, I tend to suspect that there's probably
something not right in the database design, but I don't know enough about
your design to say for sure.

--
Brendan Reynolds (MVP)
http://brenreyn.blogspot.com

The spammers and script-kiddies have succeeded in making it impossible for
me to use a real e-mail address in public newsgroups. E-mail replies to
this post will be deleted without being read. Any e-mail claiming to be
from brenreyn at indigo dot ie that is not digitally signed by me with a
GlobalSign digital certificate is a forgery and should be deleted without
being read. Follow-up questions should in general be posted to the
newsgroup, but if you have a good reason to send me e-mail, you'll find
a useable e-mail address at the URL above.
 
Back
Top