L
lwilde
I'm very new to Access, so I"m not too sure how to create a query to get the
results I want.
What I have done so far is import a spreadsheet into a table that contains
the hours an employee has worked each week, showing the employee id,
beginning date of the week, ending date of the week, standard hours, and
hours worked.
What I would like Access do for me is give me a list of employees who have
worked more than their standard hours and count how many consecutive weeks
they have done so counting backwards.
For example, employee A has standard hours of 15 (meaning 15 hours per week)
and the employee has worked the following hours:
wk1 - 23.5
wk2 - 24
wk3 - 32
wk4 - 22.5
wk5 - 23
wk6 - 25
I would like access to return a result that this employee has worked the
last 6 consecutive weeks over their standard hours. If say, wk 4 was only
14, then I would want the result to show only the last 2 consecutive weeks.
How would I write this expression?
results I want.
What I have done so far is import a spreadsheet into a table that contains
the hours an employee has worked each week, showing the employee id,
beginning date of the week, ending date of the week, standard hours, and
hours worked.
What I would like Access do for me is give me a list of employees who have
worked more than their standard hours and count how many consecutive weeks
they have done so counting backwards.
For example, employee A has standard hours of 15 (meaning 15 hours per week)
and the employee has worked the following hours:
wk1 - 23.5
wk2 - 24
wk3 - 32
wk4 - 22.5
wk5 - 23
wk6 - 25
I would like access to return a result that this employee has worked the
last 6 consecutive weeks over their standard hours. If say, wk 4 was only
14, then I would want the result to show only the last 2 consecutive weeks.
How would I write this expression?