B
Bob Quintal
Not at all. Yhe trick is to use a calculated field in your queryI am tracking production equipment effectiveness. Operators are
selecting the tool designator from a list, entering an event type
and the date/time of the event start. A query pulls out records
for a particular tool, sorted by date/time.
I'd like to add a calculated field that shows event duration, but
that involves using the event start date/time from more than one
record. In other words the event duration is defined by a
record's start date/time and is cut off by the following record's
event start date/time. A simple subtraction if I can pull in the
same field from two different records.
Or do I have to bite the bullet and send it all to Excel?
that searches for the min(startdate) which is greater than the
startdate in your current record.
FinishDate: Dmin("startdate", "yourQuery","Startdate > #" &
[startdate] & "# AND [tool designator] = " & [tool designator])
You may need to tweak field names and add some quotemarks if tool
designator is a string.