Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date order

Status
Not open for further replies.

honeypot3

Instructor
Feb 8, 2005
77
GB
Hi there

I have an inserted chart which is running the following SQL crosstab for its results:

PARAMETERS [forms]![dateselect]![month] Text ( 255 ), [forms]![dateselect]![year] Text ( 255 ), [forms]![dateselect]![tomonth] Text ( 255 ), [forms]![dateselect]![toyear] Text ( 255 );
TRANSFORM Sum(ContractQuestLinkAvg2.AvgOfResp) AS SumOfAvgOfResp
SELECT ContractQuestLinkAvg2.[Question Text]
FROM ContractQuestLinkAvg2
GROUP BY ContractQuestLinkAvg2.QuesID, ContractQuestLinkAvg2.[Question Text]
ORDER BY ContractQuestLinkAvg2.QuesID
PIVOT Format([CalcDate],"mmm-yy");

I need the [calcdate] field which is a calculated field using Cdate to display in date order. If I use ascending in the design view it just displays in them in alphabetical order on the legend of the graph. Thanks
 
Something like this ?
PIVOT Format([CalcDate],"yy-mm(mmm)");

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hi PHV

Thanks for that it has changed the order to be correct inside the chart legend but now instead of just showing Feb-07 against a legend entry it now shows 07-02(Feb-07) - how can I hide the 07-02 bit so the legend just shows Feb-07?

Sandra
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top