Chart Date Not Correct

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');
 
G

Guest

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

Top