Hello,
I use a table where the fields are calculated_date, personnel_no, paycode and calc_hours among others. Hours for an employee would be inputed by date depending on what paycode they were asigned against. An individual could have several paycodes against them for each day.
What I am trying to do is when one particular paycode (250)occurs for the first time in the date range selected, I want it to be flagged as the start_date and when the next different paycode (except 305) occurs I want to flag the previous entry as the end date. And then the next time the paycode occurs repeat the procedure etc. This information needs to be grouped by personnal_no. We have 1700 employees.
I hope you are not as confused as I am. I would appreciate any comment weather it be a solution or "That Can't be Done" so I can look at other ways of getting this data.
Thanks a million,
Fergal
I use a table where the fields are calculated_date, personnel_no, paycode and calc_hours among others. Hours for an employee would be inputed by date depending on what paycode they were asigned against. An individual could have several paycodes against them for each day.
What I am trying to do is when one particular paycode (250)occurs for the first time in the date range selected, I want it to be flagged as the start_date and when the next different paycode (except 305) occurs I want to flag the previous entry as the end date. And then the next time the paycode occurs repeat the procedure etc. This information needs to be grouped by personnal_no. We have 1700 employees.
I hope you are not as confused as I am. I would appreciate any comment weather it be a solution or "That Can't be Done" so I can look at other ways of getting this data.
Thanks a million,
Fergal