I have a history (audit trail) table which tracks steps in a workflow process and associated times for each step.
ID, StepID, PersonID, DateTime
1, 1, 22, 07/15/2006
1, 2, 19, 07/18/2006
1, 3, 6, 07/22/2006
2, 1, 23, 07/19/2006
2, 2, 4, 07/20/2006
2, 3, 5, 07/21/2006
I want to show a report that calculates the cycle time for each ID, grouped by PersonID and StepID.
Person 22
Step 1
ID: 1 Cycle Time: x Days
Now the painful thing is that I spent several days creating some VBA code to do this for me, and after a miscommunication with the users, I deleted the code. What I would like to know is if anyone has done this WITHOUT USING VBA CODE. I know how to do it with VBA...it's just don't that on a Friday, I don't feel like starting it all over again. Has anyone done this with some creative queries?
Thanks.
ID, StepID, PersonID, DateTime
1, 1, 22, 07/15/2006
1, 2, 19, 07/18/2006
1, 3, 6, 07/22/2006
2, 1, 23, 07/19/2006
2, 2, 4, 07/20/2006
2, 3, 5, 07/21/2006
I want to show a report that calculates the cycle time for each ID, grouped by PersonID and StepID.
Person 22
Step 1
ID: 1 Cycle Time: x Days
Now the painful thing is that I spent several days creating some VBA code to do this for me, and after a miscommunication with the users, I deleted the code. What I would like to know is if anyone has done this WITHOUT USING VBA CODE. I know how to do it with VBA...it's just don't that on a Friday, I don't feel like starting it all over again. Has anyone done this with some creative queries?
Thanks.