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

Sorting

Status
Not open for further replies.

ghostofelmo

IS-IT--Management
Jul 20, 2006
18
US
I am sorting my reports by priority. We are using a range of 1-10, how do I get the 10 to print after the 9, instead of the 1?
 
Your range is a string data type, you need to create a formula and use ToNumber() to convert it to numeric. And then sort by this new formula.
 
Formula returned not a numeric value. But I discovered that you can sort by "speicfied order" and just typed 1 through 10 and it worked
 
You could also add a leading zero, e.g.
Code:
if Length({your.field}) = 1 
then "0" & {your.field} 
else {your.field}

PS. It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top