H
helpwithforms via AccessMonster.com
Hi,
I am trying to query some data from my company mainframe for productivity
purposes. The fields in the table I am querying are: OperatorID,
Transaction Time/Date (Includes data and time), Transaction Type, and
Transaction Description.
Here is the way the mainframe works: There is a Transaction for each time
the operator signs in or signs out (transaction F or O) as well as each time
they move product (several different transaction types). An operator can
sign in and out several times throught their shift, for breaks and such.
There are different work shifts as well, and this is where it gets tricky.
The first shift runs from 8AM to 4PM, and the second shift runs from 6PM to
2AM. So the 2nd shift ends on a different day, but the day they clock in is
considered the "shift date." So if they clock in on Monday, but leave on
Tuesday morning at 2AM, the data is for the Monday shift.
What I am wanting to get to is some kind of a summary that would list the
operator ID, Shift Date, Sign on time, Sign off time, Total time worked, and
total number of transactions.
I am having trouble with the time scenarios, because of all the different
transactions. I have a master table with all of the transactions.
The one thing I would like to figure out is the best way to capture the Sign
In/Sign Out transactions for each Shift date for each Operator. I can do a
max/min on the sign in transactions, but how do I get the min for each date
if I have more than one days data in the master table?
Should I break that table down to Sign In transactions, Sign Off transactions
and Other transactions? Also, should I set up Autonumber on the master table?
Thanks for your help
Mike
I am trying to query some data from my company mainframe for productivity
purposes. The fields in the table I am querying are: OperatorID,
Transaction Time/Date (Includes data and time), Transaction Type, and
Transaction Description.
Here is the way the mainframe works: There is a Transaction for each time
the operator signs in or signs out (transaction F or O) as well as each time
they move product (several different transaction types). An operator can
sign in and out several times throught their shift, for breaks and such.
There are different work shifts as well, and this is where it gets tricky.
The first shift runs from 8AM to 4PM, and the second shift runs from 6PM to
2AM. So the 2nd shift ends on a different day, but the day they clock in is
considered the "shift date." So if they clock in on Monday, but leave on
Tuesday morning at 2AM, the data is for the Monday shift.
What I am wanting to get to is some kind of a summary that would list the
operator ID, Shift Date, Sign on time, Sign off time, Total time worked, and
total number of transactions.
I am having trouble with the time scenarios, because of all the different
transactions. I have a master table with all of the transactions.
The one thing I would like to figure out is the best way to capture the Sign
In/Sign Out transactions for each Shift date for each Operator. I can do a
max/min on the sign in transactions, but how do I get the min for each date
if I have more than one days data in the master table?
Should I break that table down to Sign In transactions, Sign Off transactions
and Other transactions? Also, should I set up Autonumber on the master table?
Thanks for your help
Mike