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

formating with commas 2

Status
Not open for further replies.

CTLReporting

Technical User
Jul 17, 2003
17
US
Hi all,

I have a problem. I have converted a number into a string in a formula. But when converted to a string it adds commas aftert thousands. If the number was 1005 my formula is supposed to say 1005/2 but instead it ends up saying 1,005/2 and when scanned by a barcode scanner it messes everything up. Does anyone know how to fix this?

Thanks,


CTL Reports Group,
Running Crystal Reports 8.0 and 8.5
Bentonville, AR
FoodLabReports@ctlusa.net
 
I'm assuming you used the ToText function. To get rid of the comma use

ToText({your.number.field},0,"")

The 0 is number of decimal places, , the "" is the thousands seperator.

Mike
 
Yes, I used the totext() function.

Thanks, worked great!

CTL Reports Group,
Running Crystal Reports 8.0 and 8.5
Bentonville, AR
FoodLabReports@ctlusa.net
 
I keep telling my husband that this site is one of the best sources of information and he didn't believe me until now. We had been struggling with this same bar code issue and I found this post and it solved his problem. Thanks Mike. You're a life saver.

Lori
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top