Number format: 12.34 to 00001234

G

Guest

i need to change a number as detailed in the header. I can multiply out the
decimal place but am at a loss as to how to append zeros to the srat, it is
complicated as some numbers may be 123.45 so need less zeros appending. The
resultant file will be exported as a text felt to be processed in DB2

any help very welcome, thanks
 
G

Guest

Pete,
Try a new field where the record source (or expression in a query) is
Format([TheNumber],"00000000")

Add as many zeros as you need. Also, you can use the formula to remove the
decimals in the same line like:
Format(Int([TheNumber]*100),"00000000")

Hope this helps.
 

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