ACC: Exporting to Text file Truncates to Two decimals Places
Article ID: 153364
Article Last Modified on 1/19/2007
APPLIES TO
- Microsoft Access 95 Standard Edition
- Microsoft Access 97 Standard Edition
This article was previously published under Q153364
Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
If you have a table that contains a number field with more than 2 decimal
places, and you export the table to a text file, the decimal places will be
truncated to 2 positions.
RESOLUTION
To work around this behavior, instead of exporting the table, create a
query with the fields that you want to export and use the Format() function
to specify the number of decimal places in the number field. For example,
if your field has 4 decimal places, the column in the query grid would look
as follows:
Field: Format([fieldname],"##0.0000")
STATUS
This behavior is by design.
REFERENCES
For more information about exporting in Microsoft Access, search for
"exporting data," and then "Export data to another database or file
format," using the Microsoft Access 97 Help Index.
Additional query words: round rounding truncate
Keywords: kb3rdparty kbprb KB153364