Dale,
What I have is a table named "Plant Emissions". My employees are required by
the state to enter a reading within certain ranges at least every 8 hrs.
Each time we violate the permit, we have to report it to the state. I am
attempting to pull some type of report that filters out the exceptions.
Quite frankly, I am not sure how to go about doing this. Without the filter,
I am looking at over 42k records. Any help that you can give is much
appreciated.
Dale Fye said:
Sherri,
Kind of vague. Without your data structure, I'll just have to throw
something out and you can see if it meets your needs.
One waya that I have used in the past is similiar to:
SELECT T.*
FROM yourTable T
WHERE DateDiff("h",
DMAX("TimeField", "yourTable", "[TimeField] < #" & T.TimeField & "#"),
T.TimeField) > 8
HTH
Dale
--
Email address is not valid.
Please reply to newsgroup only.
SherriK said:
I need a query that will filter records with more than 8 hours elapsed
between entries. The DateTime field is stamped on each record using Now().
I would appreciate any help you could offer.
Thanks.