# STRING TO NUMBER IN CRISTAL REPORTS

HI HOW ARE YOU hOW CAN I TURN A STRING TO NUMBER,
TO MAKE ME A ORDER LIKE
1
2
3
4
11
1A
1B

IS ANY FORMULA

THANK YOU
EDO

###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
What should 1A and 1B be, just 1?

This would be a formula, using the val function at the very minimum:

val({table.field})

If this doesn't meet your needs, then provide further sample data with expected output.
0
Commented:
this should work..
if isnumeric(field) = True then cdbl(field) else 0
0
Commented:
mine wont work for you.. sorry.. didnt see the 1A and 1B..
0
Author Commented:
THE ACTUAL ORDER IS
1
10
101
102
102A
2
2A
3

THE DESIRED ORDEN IS
1
2
2A
3
10
101
102
102A

THANK YOU A L O T

0
Commented:
Use my formula to sort first, then sort by the original field,
0
Author Commented:
WITH YOUR FORMULA THE LETTERS ARE GONE
0
Commented:
Don't display my formula, just use it for sorting.
Sorting won't work properly with just your field, that is why you need the formula
0
Author Commented:
i don't catch you
0
Commented:
You created the formula, right?  Go to the Report menu, and click on the Record Sort Expert.
Add the formula as the first field to sort on, and then add the original field after that.
Leave the original field on your report for displaying the value.
Does that help?
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
let me check it out
0
Author Commented:
IS CRYSTAL 8
THANK YOU A LOT
0
Commented:
Should be, but perhaps it was under something else.
The Record Sort Expert or Sort Expert should be there somehwere.
0
Author Commented:
thank you a lot
it works fine
0
Commented:
Is the order of the result as you desire.  I believe it will not be what you requested.

1
1A
1B
2
3
4
11

mlmcc
0
Author Commented:
yes it works
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DB Reporting Tools

From novice to tech pro — start learning today.