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!

sorting where unknown should be at the end

Status
Not open for further replies.

LinPro

Programmer
Jun 25, 2003
120
US
Hi

I am trying to do a sort on a character field. However in the column there are unknowns - the client wants to put all unknowns at the end of the sort list. What special character can I use to do this?

Lin
 
What do you mean by unknowns? Is it the actual text "Unknown" or is it a blank or null value?

You could create a formula to group on and then just display the actual field on the report.
Code:
If UPPER({table.field}) = "UNKNOWN" then
    "ZZZZZ" + {table.field}
else
    {table.field}
Then you can sort on this field, but still just continue to display {table.field} on the report.



~Brian
 
thanks Brian

I have already figured out what to do.

Lin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top