Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Help printing leading Zero's 1

Status
Not open for further replies.

nway

MIS
Jul 13, 2001
6
US
I'm a new user and I'm having trouble getting Crystal Reports to print out leading zeros, for example 0042. Can anyone point me in the right direction.
 
Hi

Use Totext({num_filed},"0000") to return a 4 long number

Geoff
 
See Article ID: c2005609 in the Crystal Reports Knowledgebase.....This uses formulas to set the length of your field and uses "replicatestring" function to append any character to the front or end of the data....
 
Thank you FoxG and Indian Bob you have saved me a lot time and trouble.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top