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

Function that writes a specified character

Status
Not open for further replies.

mrfritz44

MIS
Nov 21, 2003
75
US
Was wondering if tere is a way to format a right justified decimal with leading zeros?

If my DECIMAL = 23.01 and I use Format(DECIMAL,"0000000000") then
I get:
0000000023
and not the
0000023.01
that I need.

Any clues on what I can do to get those leading zeros and maintain my decimal at the same time?

Thanks,

Fred
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top