Set up an export specification that specifies that text values are not to be
delimited by " characters. Then use that export spec in a macro
(TransferText) or VBA code (DoCmd.TransferText).
You set up your spec by starting to do the export manually, and when the
wizard window opens, click on the Advanced button at bottom left -- you then
can set all the export specification parameters and save the spec as
whatever name you want. Then cancel the export and use the spec name in one
of the above methods.
What you've done to reformat output can be used for specifiying the decimal
format of the field's values. You create calculated fields in the query that
use the Format function to "convert" the output to your desired format.
--
Ken Snell
<MS ACCESS MVP>
David Seeto via AccessMonster.com said:
I'm experiencing the same problem, although it's actually truncating the
output at two decimal places rather than rounding. If, however, the
resulting number would be .00, Access gives the number in scientific
notation, just as the nearby post "Exporting to CSV" file says. The format
seems to work, but by default Access will put quotes around all text fields,
which this has now become.
To work around this, I am telling Access not put put quotes around text
and putting quotes around all text fields manually in the query ie. with
"""" & [field name] & """", but I would dearly love to understand why Access
is behaving this way. I haven't been able to find anything on the Microsoft
message boards, and Google came up with this forum...