Report Design
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Report Design
Message Icon Topic: Showing leading zeroes Post Reply Post New Topic
Author Message
HelenH
Newbie
Newbie
Avatar

Joined: 21 Apr 2010
Location: United Kingdom
Online Status: Offline
Posts: 9
Quote HelenH Replybullet Topic: Showing leading zeroes
    Posted: 07 Feb 2012 at 9:54pm
Embarrassed
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 IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet 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 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.