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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing the leading zeros

Status
Not open for further replies.

cunner26

Technical User
Nov 18, 2002
9
CA
Hello,

I am looking to remove leading zero's from employee numbers. The employee numbers do not always start at the same area, ie. an employee number can be 0005656 or 012343.

How can I just get rid of the zero's that come before the number.

Thanks for your help,
 
You can simply convert it to a number
---------------------
CDbl({your_string})
---------------------
Then, format this formula to have no decimals and no thousands separator.

hth,
- Ido CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top