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

Trim "like" function for a number?

Status
Not open for further replies.

dbielenda

MIS
Nov 15, 2001
119
US
I have two fields that are a number in the database that is to be displayed on my report as:

Priority Range: 1 to 9

I tried using this formula:
totext({SSSP030A.FROMPRI}) + " to " + totext({SSSP030A.TOPRI})

However on my report it appears as:
Pritority Range: 1.00 to 9.00

How can I get rid of the decimal places? Can I use a function similar to trim?

Thanks! s-)
 
You can do this instead:

totext({SSSP030A.FROMPRI},0) + " to " + totext({SSSP030A.TOPRI},0)

That will take out the decimal places.

If you were dealing with numbers in the thousands you would want to do this:

totext({SSSP030A.FROMPRI},0,"") + " to " + totext({SSSP030A.TOPRI},0,"")

alley

 
use it this way

totext({SSSP030A.FROMPRI},0) + " to " + totext({SSSP030A.TOPRI},0)


Jim
 
Worked like a charm. Thanks alot.. why didn't I see that? X-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top