Zero fill field

M

Marcie

I have the following calculation FormattedTotal: Format([Total],"000000000")
it takes the value 15192.3 and turns it into 000015192 I need 001519230. Can
anyone tell me what I am doing wrong?
 
D

Duane Hookom

Try multiply Total times 100.
FormattedTotal: Format([Total] * 100,"000000000")
 
J

Jerry Whittle

FormattedTotal: Format([Total] * 100,"000000000")

It's the decimal point that's messing you up. Multiplying by 100 bumps
things past the decimal.
 
M

Marshall Barton

Marcie said:
I have the following calculation FormattedTotal: Format([Total],"000000000")
it takes the value 15192.3 and turns it into 000015192 I need 001519230. Can
anyone tell me what I am doing wrong?


Try using:

FormattedTotal: Format([Total] * 100, "000000000")
 
J

John W. Vinson

I have the following calculation FormattedTotal: Format([Total],"000000000")
it takes the value 15192.3 and turns it into 000015192 I need 001519230. Can
anyone tell me what I am doing wrong?

Sounds like you need to multiply 15192.3 by 100 to get 1519230, and then
format that value.
 

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