Leading Zeroes

L

Linda

I have a field that must always be 14 characters. It is a dollar field. How
do I add the leading zeros when the dollars are variable lengths?


Linda Thanks
 
K

Ken Snell

You can use the format function to "add" zeroes to a number. Assume that
your currency value is $53.44. You'd use this expression to get 14
characters total (including the decimal point):

Format("53.44", "00000000000.00")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top