ACC2000: Exporting to Text file Truncates to Two Decimals PlacesID: Q208408
|
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.
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")
Field Name: Cost
Data Type: Number
Field Size: Double
Decimal Places: 4
For more information about exporting tables, click Microsoft Access Help on the
Help menu, type "export data or database objects to another database or file format" in the Office Assistant or the Answer Wizard,
and then click Search to view the topic.
Additional query words: round rounding prb truncate
Keywords : kb3rdparty kbdta IsmTxtd
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: June 16, 1999