samonwalkabout
Registered User.
- Local time
- Today, 21:45
- Joined
- Mar 14, 2003
- Messages
- 185
I have a qry that gives me the due dates of projects. Row heading by department. Colums displaying date in Months. The cells show the number of project for a department in a month. Is it possible to get the colums to group the dates into (not due, 1-30 days overdue, 31-90 days over due, 91-180 days overdue, 181-365 days over due.
heres the SQL.
TRANSFORM Count([2002_Preventative_Actions_Table].Auto_Number) AS CountOfAuto_Number
SELECT [2002_Preventative_Actions_Table].Dept_Resp_ID, Count([2002_Preventative_Actions_Table].Auto_Number) AS [Total Of Auto_Number]
FROM 2002_Preventative_Actions_Table
GROUP BY [2002_Preventative_Actions_Table].Dept_Resp_ID
PIVOT Format([Due Date],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
Im guessing its something to do with the PIVOT setting??
Thanks
heres the SQL.
TRANSFORM Count([2002_Preventative_Actions_Table].Auto_Number) AS CountOfAuto_Number
SELECT [2002_Preventative_Actions_Table].Dept_Resp_ID, Count([2002_Preventative_Actions_Table].Auto_Number) AS [Total Of Auto_Number]
FROM 2002_Preventative_Actions_Table
GROUP BY [2002_Preventative_Actions_Table].Dept_Resp_ID
PIVOT Format([Due Date],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
Im guessing its something to do with the PIVOT setting??
Thanks