J
Joe Williams
I have a query that has the following fields (Sample data included)
MAchine # Job No HoursToGo
Machine 1 001 24
Machine 1 002 16
Machine 2 004 45
What I need to be able to do is calculate the forecasted end date for each
job. how I am thinking I want to do this is to take the first job in each
machine and add the hours to go to the current date/time. That will give me
the forecast end for the first job. Then I need to take this new date/time
and add the hours to go fro the second job to get the end date/time for that
job. And so on and so on. Every time the query sees a new machine number,
then it should reset to adding the hours to go to the current date/time and
go from there.
I am thinking I need to have a module function to do this, but not sure how
to write it or work it into the query. Any thoughts?
- joe
MAchine # Job No HoursToGo
Machine 1 001 24
Machine 1 002 16
Machine 2 004 45
What I need to be able to do is calculate the forecasted end date for each
job. how I am thinking I want to do this is to take the first job in each
machine and add the hours to go to the current date/time. That will give me
the forecast end for the first job. Then I need to take this new date/time
and add the hours to go fro the second job to get the end date/time for that
job. And so on and so on. Every time the query sees a new machine number,
then it should reset to adding the hours to go to the current date/time and
go from there.
I am thinking I need to have a module function to do this, but not sure how
to write it or work it into the query. Any thoughts?
- joe