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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Showing Dates in Order 2

Status
Not open for further replies.

smil3y

IS-IT--Management
Jan 8, 2004
79
AU
I am using a cross tab with date formula (ToText({Injuries.Date},"MMM yyyy")) to get date in correct format. This works but when presented in the report the dates start at A then etc.

Can someone help me with getting dates in correct order ie start at Jan etc.

 
Create a formula that will sort properly:

tetext(month({Injuries.Date})"00")&Totext(Year({Injuries.Date}),0,"")

Group by this fieldm rather than the formula field you have now. Then on group options, for group name, click the "user a formula" radio button and insert the formula you are using now:

ToText({Injuries.Date},"MMM yyyy")


Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
Try using the date field itself for your group and set it for monthly, and then choose "customize group name"->use a formula and then use your formula:

ToText({Injuries.Date},"MMM yyyy")

Note that you will need to refresh the report before you can see the new group labels in the crosstab.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top