Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

segmenting data from a table

Status
Not open for further replies.

Black1

Computer
Mar 12, 2003
1
I'm working on a production utility and I'm using MS access 97 to capture data and generate reports. We have a warehouse management system implemented that generates the tasks necessary to be performed by warehouse associates to fulfill order requirements.(picking, aggregation, packing).
What I'm trying to calculate is the number of tasks completed per hour by associate and task type. My issue is being able to come up with the total amount of time an associate has spent performing any particular task type. There is a start time and an end time for each task that has been completed. Some tasks have been performed in parallel thus creating duplicate start and end times for those tasks. Because of this I cannot use the summed elapsed time of each task completion. So I tried to use max[end time]- min[start time] to get the total time spent on each grouped task type. This didn't work either because the associates jump between performing various tasks. Example:

Task User Start Time End Time
Smallpack Arnes01 12:15:23 12:16:17
Smallpack Arnes01 12:18:23 12:19:17
Smallpack Arnes01 12:20:23 12:21:17
LTLpack Arnes01 13:00:14 13:15:12
LTLpack Arnes01 13:16:12 13:18:20
Smallpack Arnes01 13:30:23 13:31:17
Smallpack Arnes01 13:32:23 13:34:17
Smallpack Arnes01 13:36:23 13:38:17

how can I use a module to block off the min and max time sets for each user and task type? Like in the example above take the max[end time] - min[start time] of the FIRST block instance of smallpack + the max[end time] - min[start time] of the SECOND block instance of smallpack. This way they become two separate events that can be dumped to another table and calculated. Any help would be GREATLY appreciated.

Glen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor