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

month sort problem

Status
Not open for further replies.

francesguan

Technical User
Jan 26, 2006
52
CA
created a shipment report, need to be sequenced by month, like Jan, Feb, Mar,... but when grouped by month, it automatically put "Apr" as the first then "Aug", then "Dec"

any idea to let the month sequence in natual?

Thanks,
Frances
 
If you are using Crystal XI I know this works .. not sure what the other versions offer...


Menu Item > Report > Group Expert

select the grouping you want
at the bottom select options
in the drop down box select specified order.
then select the specified order tab.

_____________________________________
Not the brightest
Crystal Reports XI Developer Version
user in the world........
 
whups I didnt mean to hit send yet ...

from there you can specify the order.

Without doing this I believe Crystal tries to sort them alphabetically....

_____________________________________
Not the brightest
Crystal Reports XI Developer Version
user in the world........
 
You could also group by the date field on change of month and then change the group name in group expert->group options->customize name to:

totext({table.date},"MMM")

-LB
 
wouldnt that still sort it alphabetically?

_____________________________________
Crystal Reports XI Developer Version
Intersystems Cache 5.X ODBC connection

 
Consider this one:

Month(Date ("2007",{@Yourfield} ,"1"))

Then group by this formula.

The 'Date' portion converts your text to the date, then the month function converts it to a number.



 
CoSpringsGuy,

No, if you group on the date field, it will sort in chronological order. Then you can customize the group NAME, to show the monthname.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top