I need help with creating a Sub Query
Here are ALL of the fields:
- EmployeesID
- Yrs (2012)
- MnthYr (11/12)
- Hrs
- Erngs ($)
I have query with the sums of ALL of the above fields by ‘MnthYr.’ Now, I am able to create a sub query as such: YrlyMnthly Employees Summary_SQ
- Query: Yr
- SubQuery: MnthYr, SumofHrs, & SumofErngs (that’s for each MnthYr per yr)
- SubQuery: EmployeeID, CountOfWkdys, SumOfHrs, & SumofErngs (that’s for each MnthYr per yr)
This query/sub query serves me well. However, I have another sub query Employees YrlyMnthly Summary_SQ, which displays (in order)
- Query: EmployeeID, CountofMnths, CountOfWkdys, SumofHrs, & SumofErngs (that’s for each MnthYr per yr)
- SubQuery: Yr, MnthYr, SumofHrs, & SumofErngs (that’s for each MnthYr per EmplyID)
*Here’s the issue which I cannot solve & have been at it for many days. In the last subquery Employees YrlyMnthly Summary_SQ how can I (break down) make a subquery for the ‘Yr’ & link it back to the Employees YrlyMnthly Summary_SQ? So, under each 'EmploeeID' would just have the 'Yr' & then under "Yr' would show the rest of the fields/CountofMnths, CountOfWkdys, SumofHrs, & SumofErngs (that’s for each MnthYr per yr)
Like in my YrlyMnthly Employees Summary_SQ query which is first SubQuery into 'Yr' I want the same thing for the Employees YrlyMnthly Summary_SQ subquery to first drop down into ‘Yr” & then into ‘MnthYr’ but nothing I’ve tried works. If this is not too confusing, can I ask for some suggestions?