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

Sorting help with negatives

Status
Not open for further replies.

jaburke

Programmer
May 20, 2002
156
US
Hey,
I want to sort a field containing numbers. For example:

-9
-13
9
10
12
13

How can I create a formula to do this? Right now it is doing this:

9
-9
10
12
13
-13
 
Right click the field and select browse data, it's probably recognized as a string.

Write a formula of val({table.field}) and use the formula for sortation.

-k
 
When I use that formula in my 'If' statement, I get an error that says 'a string is required here'.
I am adding this one line to an existing formula and all the other 'If' statements have converted numbers to strings for sorting. Why - I don't know.
How can I suppress that error and why is it happening? Ideas??

Much thanks..
 
I found the answer in another post. I didn't see it yesterday when I searched.

Thanks!
 
Glad you've solved it. But it's helpful to say what the solution was, in case someone else has something similar.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top