D
DawnTreader
Hello All
i have an app that stores how many hours a machine has run at what dates.
like this:
RunningHoursID HoursAtDate RHDate BlockID
1 10 01/01/01 12
2 20 01/02/01 12
3 30 01/03/01 12
4 40 01/04/01 12
5 543 01/01/01 20
6 590 01/02/01 20
what i need to do is take each record and compare it to the next (or last
depending on how you look at it) then calculate the difference between the
amount of hours the machine has run. the reason is that the 20 in the second
record is the total hours the machine showed on the meter the day the record
was made. the meter doesnt get reset, its like the odometer on a car. i also
need to calculate the amount of time between each record.
the reason is that we are trying to build a forcasting tool to know on
average how many hours will be added to the machine over a certain amount of
time. after a certain amount of hours the machines need a checkup and we want
to be able to schedule that.
i have tried a query and subquery but it crashes access.
i have an app that stores how many hours a machine has run at what dates.
like this:
RunningHoursID HoursAtDate RHDate BlockID
1 10 01/01/01 12
2 20 01/02/01 12
3 30 01/03/01 12
4 40 01/04/01 12
5 543 01/01/01 20
6 590 01/02/01 20
what i need to do is take each record and compare it to the next (or last
depending on how you look at it) then calculate the difference between the
amount of hours the machine has run. the reason is that the 20 in the second
record is the total hours the machine showed on the meter the day the record
was made. the meter doesnt get reset, its like the odometer on a car. i also
need to calculate the amount of time between each record.
the reason is that we are trying to build a forcasting tool to know on
average how many hours will be added to the machine over a certain amount of
time. after a certain amount of hours the machines need a checkup and we want
to be able to schedule that.
i have tried a query and subquery but it crashes access.