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

TransferText Action exports only 2 decimal places 1

Status
Not open for further replies.

drewmayerson

Technical User
Apr 18, 2000
9
US
I run a macro to export the results of a query to a text file using the TransferText Action in a macro. Even though the numbers in my table and subsequent query have 4 to 6 places to the right of the decimal point, the results of my TransferText Action clips it to 2. Any ideas?

Thanks, Drew
 
Not sure why it happens, probably uses the Windows Default. Try formatting the output in your query

Format([FieldName],"#,###.######")

PaulF
 
Paul,
Thanks. You were right about it being a Windows quirk. I finally had to go to Regional Settings > Numbers > Decimals and set the default to 6. Worked like a charm. Who knew?

Thanks again,
Drew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top