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!

Sort Alphanumeric

Status
Not open for further replies.

deedeel

Technical User
Nov 7, 2003
2
US
Hi...I know there has to be a way...CR8.5

I'm using an Access XP database as the source...

I am trying to sort data by an alphanumeric string but it does so incorrectly...or at least not the way I want it

10A
14A
1A
2A

Want..
1A, 2A, 10A,14A

Access is giving me the same issues and when I tried to break it down my val and string there I coudn't pass the query onto Crystal.

Any easy ways around this??
Thanks - d
 
Use the following formula to add a leading SPACE then sort ascending on the results of {@StandardLength}.

Name : {@StandardLength}
Formula : IF Length ({Table.Field}) < 3 THEN (&quot; &quot; + {Table.Field}) ELSE {Table.Field}

It will return your results like this...

Field StandardLength
- - - - - - - - - - - - - - - - -
1A 1A
2A 2A
10A 10A
14A 14A
- - - - - - - - - - - - - - - - -
 
Thank you! That worked perfectly!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top