Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Report Design
Crystal Reports Forum
:
Crystal Reports for Visual Studio 2005 and Newer
:
Report Design
Topic: Showing leading zeroes
Oldest Post First
Newest Post First
Author
Message
HelenH
Newbie
Joined: 21 Apr 2010
Location: United Kingdom
Online Status: Offline
Posts: 9
Topic: Showing leading zeroes
Posted: 07 Feb 2012 at 9:54pm
Silly question I'm sure
I have a number field that I want to display in my report as a 4 digit number with the elading zeroes, e.g. "0001", "0234", etc
Can't figure out how to do it
Can any one help?
IP Logged
lockwelle
Moderator
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Posted: 08 Feb 2012 at 3:28am
you could display it as a string and use a formula like:
right("0000" + totext({table.field}, 0,""), 4)
HTH
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.016 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.