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

Sort on Item No Non Numeric 1

Status
Not open for further replies.

codrutza

Technical User
Mar 31, 2002
357
IE
CRXI

Hi

I have a formula @miditem:
mid({ReferenceNumber},9,1)+mid({ReferenceNumber},10,1)
and then I have a formula @miditemno:
tonumber({@miditem})

I Have to sort on @miditemno, (because for example if I sort on {@miditem} is 1, 11, 3, 4 and I need 1, 3, 4, 11) but when I put the formula @miditemno in Record Sort Expert gives me the error:
The string is non numeric

Is there any other way to sort the records, please?
 
Hi,

If miditem contains non-numeric characters, of course you will get an error.

Skip,

[glasses]Just traded in my OLD subtlety...
for a NUance![tongue]
 
For miditerm try something like:

if isnumeric({@midterm})
then val({@midterm})
else 0

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top