sorting - (1st post doesnt seem to appear - sorry if it has)

N

Newbie

I want to be able to sort a text field as if it were a number field - 99.9%
of the data is number - I can't change the field type :-(

I can sort the query that the report is based on using (SQL):

ORDER BY Operator, TX.orderno, TX.opno, Case
patindex('%[^0-9]%',TX.PassportNo) when 0 then cast (TX.PassportNo as int)
end, TX.PassportNo;

Is there something similar for sorting the report?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top