HERE is the SQL that you should be using. Enter this in the SQL view window
and switch back to the Design window.
SELECT Inspection_Data.SFN, Inspection_Data.Date
, Inspection_Data.[NBI 58 (Deck)]
, Inspection_Data.[NBI 59 (Superstructure)]
, Inspection_Data.[NBI 60 (Substructure)]
, Inspection_Data.[NBI 62 (Culvert)]
FROM Inspection_Data
WHERE (((Inspection_Data.Date) Between #1/1/2008# And #12/31/2008#) AND
((Inspection_Data.[NBI 58 (Deck)])<="5"))
OR (((Inspection_Data.Date) Between #1/1/2008# And #12/31/2008#) AND
((Inspection_Data.[NBI 59 (Superstructure)])<="5"))
OR (((Inspection_Data.Date) Between #1/1/2008# And #12/31/2008#) AND
((Inspection_Data.[NBI 60 (Substructure)])<="5"))
OR (((Inspection_Data.Date) Between #1/1/2008# And #12/31/2008#) AND
((Inspection_Data.[NBI 62 (Culvert)])<="5"))
ORDER BY Inspection_Data.SFN;
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
Thanks John, but I must have something fundamentally wrong here. I'm eating
some serious humble pie over here. Pulling the identifying column value out
of a large table when any of 4 values for that record are 5 or less shouldn't
be that difficult. They all have to be in the "or" line of the select query?
I put the table and query in a blank db on ftp if interested in seeing the
details ... otherwise thanks again for the effort.
ftp://s1107102645:
[email protected]