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

Strip leading zeros from data 1

Status
Not open for further replies.

DanAuber

IS-IT--Management
Joined
Apr 28, 2000
Messages
255
Location
FR
I have a column with text data in it. Some of it is pure text and other rows are numbers. E.g.:

09768
00678
ABCDE
ABDS
0867
0223

Does anyone know of a way to strip the leading zeros from this. Thus any row that has zeros in the field at the front would be stripped (it would possibly need to cycle through a few times) - leading to:

9768
678
ABCDE
ABDS
867
223

Thanks for any help on this

Dan

 
Format(yourField, "#")

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top