andy_dyer
Registered User.
- Local time
- Today, 23:40
- Joined
- Jul 2, 2003
- Messages
- 806
Hi,
I have a query:
SELECT qryProjectSelect.[Department Name] AS Department, Sum(qryProjectSelect.[Total Hrs]) AS [Total Hours], [Total Hours]/[Grand Total] AS Percentage
FROM qryProjectSelect, qryProjectTotalHours
WHERE (((qryProjectSelect.[Entry Date]) Between [forms]![frmQuery]![txtStart] And [forms]![frmQuery]![txtFinish]))
GROUP BY qryProjectSelect.[Department Name], qryProjectTotalHours.[Grand Total]
ORDER BY Sum(qryProjectSelect.[Total Hrs]) DESC;
This gives me the results I need broken down by individual department...
I need to be able to group department a with department e and departments b, c and d...
I have tried adding an extra layer of hierarchy in my tblDept with a field "New Department" but am not sure how I can feed this into the query at all so that it is the new department for this query that is picked up and not the original department name...
Have I explained that ok??
If anyone can help I'd be grateful!
I have a query:
SELECT qryProjectSelect.[Department Name] AS Department, Sum(qryProjectSelect.[Total Hrs]) AS [Total Hours], [Total Hours]/[Grand Total] AS Percentage
FROM qryProjectSelect, qryProjectTotalHours
WHERE (((qryProjectSelect.[Entry Date]) Between [forms]![frmQuery]![txtStart] And [forms]![frmQuery]![txtFinish]))
GROUP BY qryProjectSelect.[Department Name], qryProjectTotalHours.[Grand Total]
ORDER BY Sum(qryProjectSelect.[Total Hrs]) DESC;
This gives me the results I need broken down by individual department...
I need to be able to group department a with department e and departments b, c and d...
I have tried adding an extra layer of hierarchy in my tblDept with a field "New Department" but am not sure how I can feed this into the query at all so that it is the new department for this query that is picked up and not the original department name...
Have I explained that ok??
If anyone can help I'd be grateful!