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!

how to sorting with parament in CR

Status
Not open for further replies.

kspiderman

IS-IT--Management
Dec 16, 2004
9
US
Can somebody help me with sorting Acending and decending using parameter, column is same.
you help is most helpful
 
Start by creating two formulas:

//@SortAscending
if {?SortParameter} = "Ascending" then {Table.Field}

//@SortDescending
if {?SortParameter} = "Descending" then {Table.Field}

From the Record Sort Expert, add the @SortAscending formula and set the Sort Direction to 'Ascending'. Then add the @SortDescending formula, setting the sort direction to 'Descending'.

I don't know of a more elegant solution, but would love to hear of one...

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top