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

custom sort order

Status
Not open for further replies.

jrhessey

IS-IT--Management
Feb 25, 2005
37
Is there anyway I can make a formula that would allow me to sort data by a variable I select. I have a field in a report and I would like to sort it ascending starting with c instead of a. Is there a way I could accomplish this? Thanks for any help!
 
Please show a sample of your data sorted the way you would like.

-LB
 
OK

On the report I have categories such as,

6142
8142
ASSC
CAIR
NTFT

I would like to have it start with C and go down instead of the natural ascending sort

CAIR
NTFT
6142
8142
ASSC

 
Create the following formula:

if isnumeric(left({table.field},1)) then "2"+{table.field} else
if left({table.field},1) in ["A","B"] then "3"+{table.field} else
"1"+{table.field}

Use this formula as the sort field, but display only {table.field}.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top