Currency to text

G

Guest

I have a currency field (must stay as cacluations are performed) but I need a
query to export the file to another system so it must be a text file and must
have leading zeros. Example: I have a curenncy field $156.10 should after
query look like 0015610 (7 digit field). I have tried format I have tried
Str$ - I can't get the combination I am looking for. Any assistance would be
greatly appreciated.
 
G

Guest

Open the query in design view. Highlight the output field by clicking on the
top of the grid field. Click on menu VIEW Properties. In format enter
0000000 and that should do it.
 
J

John Spencer

I would try
Format(SomeField *100,"0000000")
or if there is the possibility that the field would have numbers like
$156.1057 and I wanted to eliminate rounding I might use
Format(Int(SomeField * 100),"0000000")
 
G

Guest

Works - Great
Thanks

John Spencer said:
I would try
Format(SomeField *100,"0000000")
or if there is the possibility that the field would have numbers like
$156.1057 and I wanted to eliminate rounding I might use
Format(Int(SomeField * 100),"0000000")
 

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