Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: remove thousand separator from a numeric field in Post Reply Post New Topic
Author Message
Crystal Method
Newbie
Newbie
Avatar

Joined: 06 Oct 2008
Location: United Kingdom
Online Status: Offline
Posts: 15
Quote Crystal Method Replybullet Topic: remove thousand separator from a numeric field in
    Posted: 27 Jan 2011 at 11:20pm
I have the following formula which creates a barcode from a string and a numeric input field.
 
'*'& 'Q' & {?prfQuantity9} & '*'
 
I have changed the numeric format in  Report -> Options... so that the thousand separator is not displayed.  However, the numeric field in the formula is still picking up the ',' thousand separator which creates an erroneous barcode.
 
How do I format the numeric field within the formula to suppress the thousand separator?
 
Regards
CM
Seagate Crystal Reports 8.5.0.389 in the guise of INFOR:Reports as part of Infor:COM ERP software.
IP IP Logged
crystallize
Newbie
Newbie


Joined: 25 Jan 2011
Location: Germany
Online Status: Offline
Posts: 7
Quote crystallize Replybullet Posted: 27 Jan 2011 at 11:25pm
Originally posted by Crystal Method


 
'*'& 'Q' & {?prfQuantity9} & '*'
 


Try

'*'& 'Q' & Cstr{?prfQuantity9}, '#') & '*'


IP IP Logged
Crystal Method
Newbie
Newbie
Avatar

Joined: 06 Oct 2008
Location: United Kingdom
Online Status: Offline
Posts: 15
Quote Crystal Method Replybullet Posted: 30 Jan 2011 at 10:11pm
Thanks Crystallize,
 
Cstr did the trick.  A slight tweak on the syntax to what you sent:
 
'*'& 'Q' & Cstr({?prfQuantity9},0) & '*'
 
Thanks for your help, much appreciated.
 
CM  Smile
Seagate Crystal Reports 8.5.0.389 in the guise of INFOR:Reports as part of Infor:COM ERP software.
IP IP Logged
assafse
Newbie
Newbie


Joined: 03 Jun 2012
Online Status: Offline
Posts: 8
Quote assafse Replybullet Posted: 10 Jan 2013 at 1:17am
Thanks! halped a lot.
I did : "Avg " + cstr(Year(CurrentDate), '#')
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.029 seconds.