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

format number

Status
Not open for further replies.

Daya100

Programmer
Jan 11, 2002
21
US
I'm trying to format a number so that it is 4 characters long. For example 1 would be 0001 and 15 would be 0015. How do I do that?
Thanks!
 
If you put "0000" in the format property you should get what you want.

E.g.,

format(15,"0000") will display the number 15 as "0015"

-- Herb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top