Access export to csv

Anonymous
2018-06-26T17:17:29+00:00

When exporing  x-point and y-point data fields to csv format, the exported data has only 2 decimal places.  IE -119.12345678, when opened in text field is -119.12, using UTF-8, Where might this be controlled.  Might I have to change the field to a text type?

Export wizard 'sees' info correctly, but the text file contains only 2 dec places

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2018-06-26T18:20:36+00:00

    Should have mentioned that images were demonstrational, as I was using macro to run/export query on table with the 2 fields setup as number-double type

    0 comments No comments
  2. Anonymous
    2018-06-26T19:27:20+00:00

    I may have found a work around. The export is somehow exporting 2 decimal places, by adding a calculation to an additional field (&' ') it is recognized as text and is not cut, and I don't have to reformat the original data as text just for this one external use.

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2018-06-26T23:42:48+00:00

    Another technique is to explicitly cast the value as text using the Format() function:

    ShowY = Format([Point_Y], "#.0000000")

    will show the value with seven decimals.

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2018-06-27T15:39:30+00:00

    Thanks John, will try that, but is there a setting somewhere that tells the export to limit to 2 dec places? I was surprised/dismayed that it would do that on it's own accord, without my permission!!  haha

    0 comments No comments