Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: boolean is required
Oldest Post First
Newest Post First
Author
Message
opinky
Newbie
Joined: 19 Aug 2009
Location: United States
Online Status: Offline
Posts: 6
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 Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 19 Aug 2009 at 10:45am
Are you using this in Crystal Syntax or Basic Syntax?
IP Logged
opinky
Newbie
Joined: 19 Aug 2009
Location: United States
Online Status: Offline
Posts: 6
Posted: 19 Aug 2009 at 10:49am
Crystal Syntax
Thanks,
Pinky
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 19 Aug 2009 at 10:52am
Where exactly in Crystal are you using the formula?
IP Logged
opinky
Newbie
Joined: 19 Aug 2009
Location: United States
Online Status: Offline
Posts: 6
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 Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
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 Logged
opinky
Newbie
Joined: 19 Aug 2009
Location: United States
Online Status: Offline
Posts: 6
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 Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 19 Aug 2009 at 1:00pm
Sorry, did not know it was a currency value.
ToText(tonumber((SUM(({
table.fieldtosum
}))*100)),'000000000000')
IP Logged
opinky
Newbie
Joined: 19 Aug 2009
Location: United States
Online Status: Offline
Posts: 6
Posted: 19 Aug 2009 at 1:06pm
Thank You so much you have been a great help!
Thanks,
Pinky
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.