I am trying to build a query that pulls in the last six weeks production information for each one of our employees. I have been using the beginning and ending date criteria, but in a lot of cases one week will have zero information or the employee has less than 8.00 hours, which in that case the production does not apply, then I would have to go back and requested additional weeks. We have situations where an employee may miss several weeks of production, but I would still need to have his most current six weeks production even if I have to go back 20 weeks.
So what I need is the employee most current six weeks production and their standard hours have to be greater than 7.99.
The report I would like to end up with would have each employee listed with six weeks of production with those weeks being the most current and with at least 8.00 standard hours for those weeks listed.
I have looked at the information on TopValues and DateSerial, but I can't see how it would get me what I want???? Suggestions would be greatly appreciated.
Thanks,
So what I need is the employee most current six weeks production and their standard hours have to be greater than 7.99.
The report I would like to end up with would have each employee listed with six weeks of production with those weeks being the most current and with at least 8.00 standard hours for those weeks listed.
I have looked at the information on TopValues and DateSerial, but I can't see how it would get me what I want???? Suggestions would be greatly appreciated.
Thanks,