A
Alan Nicoll
I have some data that I need to interpret based on the
value of the same field in the previous record. If I were
working in a Visual Basic array it would be easy enough,
but I don't know how to do this in Access.
That is: I have a shift code in one field that indicates
(among other things) time of day when an employee worked.
The rate the employee earns depends on Day/Evening/Night
rates. Now, sometimes the shift is coded as "Overtime"
and so doesn't indicate the time of day.
When the shift is coded "Overtime" I want to look back at
the previous record and take the time of day from there.
In most cases this will be correct, which will be more
convenient for the user than just plugging in the Day rate
(user checks all this by hand anyway).
Thanks.
Alan
value of the same field in the previous record. If I were
working in a Visual Basic array it would be easy enough,
but I don't know how to do this in Access.
That is: I have a shift code in one field that indicates
(among other things) time of day when an employee worked.
The rate the employee earns depends on Day/Evening/Night
rates. Now, sometimes the shift is coded as "Overtime"
and so doesn't indicate the time of day.
When the shift is coded "Overtime" I want to look back at
the previous record and take the time of day from there.
In most cases this will be correct, which will be more
convenient for the user than just plugging in the Day rate
(user checks all this by hand anyway).
Thanks.
Alan