Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: boolean is required Post Reply Post New Topic
Author Message
opinky
Newbie
Newbie
Avatar

Joined: 19 Aug 2009
Location: United States
Online Status: Offline
Posts: 6
Quote opinky Replybullet Topic: boolean is required
    Posted: 19 Aug 2009 at 9:02am
I am trying to format this field so it has leading zeros, when I use the formula below i get the boolean is required. What am I missing.
 
ToText(ToNumber({PYMT.DOC_AMT}),'000000000000')
 
Thanks
Pinky
Thanks,
Pinky
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 19 Aug 2009 at 10:45am
Are you using this in Crystal Syntax or Basic Syntax?
IP IP Logged
opinky
Newbie
Newbie
Avatar

Joined: 19 Aug 2009
Location: United States
Online Status: Offline
Posts: 6
Quote opinky Replybullet Posted: 19 Aug 2009 at 10:49am

Crystal Syntax

Thanks,
Pinky
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 19 Aug 2009 at 10:52am
Where exactly in Crystal are you using the formula?
IP IP Logged
opinky
Newbie
Newbie
Avatar

Joined: 19 Aug 2009
Location: United States
Online Status: Offline
Posts: 6
Quote opinky Replybullet Posted: 19 Aug 2009 at 11:02am
In the report footer I am trying to sum the field and make it come out with the leading zero's . like if the sum amount is 7325.00 i need it to read
000000732500
 
I have the field where it is summing already.
Thanks,
Pinky
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 19 Aug 2009 at 11:10am
Does this work...
Create a formula field as "ConvertedSum" with the formulas of:
 
ToText((SUM({table.fieldtosum})*100),'000000000000')
 
Place the formula field in the report footer.
IP IP Logged
opinky
Newbie
Newbie
Avatar

Joined: 19 Aug 2009
Location: United States
Online Status: Offline
Posts: 6
Quote opinky Replybullet Posted: 19 Aug 2009 at 12:46pm
That worked good the only thing is it has a $ then all the zero's
Thanks,
Pinky
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 19 Aug 2009 at 1:00pm
Sorry, did not know it was a currency value.
ToText(tonumber((SUM(({table.fieldtosum}))*100)),'000000000000')
IP IP Logged
opinky
Newbie
Newbie
Avatar

Joined: 19 Aug 2009
Location: United States
Online Status: Offline
Posts: 6
Quote opinky Replybullet Posted: 19 Aug 2009 at 1:06pm
Thank You so much you have been a great help!
Thanks,
Pinky
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.031 seconds.