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!

Sort parameter question 1

Status
Not open for further replies.

vshapiro

Programmer
Jan 2, 2003
211
US
I created sort parameter to give user possibility to sort by desired field. Then Create Sort formula:

if {?Sort} = "PROJECT_NUMBER" then
{Command.PROJECT_NUMBER}
else if
{?Sort} = "DATE_OF_COMPLAINT" then
totext({Command.DATE_OF_COMPLAINT}, "yyyy-mm-dd")
else if
{?Sort} = "ALLEGATION_SOURCE_DESCRIPTION" then
{Command.ALLEGATION_SOURCE_DESCRIPTION}
else if
{?Sort} = "TARGET_NAME" then
{Command.TARGET_NAME}

and grouped by this Sort formula. When I grouped I did it ascending. My question is:
Can I give user ability to select sort in ascending or descending order?

Thank you


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top