Chart Date Not Correct

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following CrossTab query that works great. I have a chart with the
data source as this query. Even if a user types 1/1/04 - 12/31/04 and the
query shows good data for those dates, my chart labels say Jan 05, Feb 05,
etc. I have the labels formatted to mmm-yy. Any idea why my labels aren't
correct? Thank you.

TRANSFORM Count(NewHireQuery.RegTemp) AS CountOfRegTemp
SELECT NewHireQuery.Code
FROM NewHireQuery
WHERE (((NewHireQuery.GenderDesc) Like '*') AND
((NewHireQuery.EthnicDescription) Like '*') AND
((NewHireQuery.EducationDescription) Like '*') AND ((NewHireQuery.Code) Like
'*') AND ((NewHireQuery.JobTitle) Like '*') AND
((NewHireQuery.LengthCategory) Like '*') AND ((NewHireQuery.GroupDescription)
Like '*') AND ((NewHireQuery.County) Like '*') AND ((NewHireQuery.HireDate)
Between #1/1/2004# And #6/30/2004#))
GROUP BY NewHireQuery.Code
PIVOT Format([HireDate],'mm/yy');
 
I resolved this by using:
PIVOT Format([HireDate],'mmm/yyyy');


Alex said:
I have the following CrossTab query that works great. I have a chart with the
data source as this query. Even if a user types 1/1/04 - 12/31/04 and the
query shows good data for those dates, my chart labels say Jan 05, Feb 05,
etc. I have the labels formatted to mmm-yy. Any idea why my labels aren't
correct? Thank you.

TRANSFORM Count(NewHireQuery.RegTemp) AS CountOfRegTemp
SELECT NewHireQuery.Code
FROM NewHireQuery
WHERE (((NewHireQuery.GenderDesc) Like '*') AND
((NewHireQuery.EthnicDescription) Like '*') AND
((NewHireQuery.EducationDescription) Like '*') AND ((NewHireQuery.Code) Like
'*') AND ((NewHireQuery.JobTitle) Like '*') AND
((NewHireQuery.LengthCategory) Like '*') AND ((NewHireQuery.GroupDescription)
Like '*') AND ((NewHireQuery.County) Like '*') AND ((NewHireQuery.HireDate)
Between #1/1/2004# And #6/30/2004#))
GROUP BY NewHireQuery.Code
PIVOT Format([HireDate],'mm/yy');
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Chart on Report 1
Reporting - Breakdown date range output 4
Graph changing date order 6
Entering Dates 2
format date 7
Month (MMM) from date (dd/mmm/yy) 1
Format date Month/Year 2
Week starts on Friday 2

Back
Top