Results 1 to 2 of 2
  1. #1
    smoothlarryhughes is offline Advanced Beginner
    Windows 7 64bit Access 2003
    Join Date
    Sep 2012
    Posts
    36

    Exporting numbers to CSV from query in Access

    I've been struggling to get numbers that are more than 10 or 11 digits long to not truncate the decimals when opened as csv in excel. I need the decimals to be there so I can upload this data into a separate SQL database and if the decimals do not show in the CSV file only the whole numbers upload to SQL. If I open the file and format all the numbers as numbers (they export in general format) and resave, it will upload fine, but the purpose of this database was to import the data and have it export the files that need to be uploaded automatically without having to open each file and format etc.

    For example, my query looks like this when i run it in access. There are decimals.



    Click image for larger version. 

Name:	ACCESS.png 
Views:	11 
Size:	7.7 KB 
ID:	39632


    When I export it to CSV I get the below:
    Click image for larger version. 

Name:	CSV_FILE.png 
Views:	11 
Size:	5.4 KB 
ID:	39633


    When I click in the cells of the ones that the decimals are truncated I see this:
    Click image for larger version. 

Name:	Cell.png 
Views:	11 
Size:	3.4 KB 
ID:	39634


    When I sum 2 of the truncated cells they only sum the rounded numbers, which seems odd since when you click in each cell the decimals are there.

    Click image for larger version. 

Name:	sum.png 
Views:	11 
Size:	19.1 KB 
ID:	39635

    Help!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Exporting Query From Access to Excel Template
    By manics31 in forum Import/Export Data
    Replies: 2
    Last Post: 09-25-2018, 05:49 PM
  2. Replies: 15
    Last Post: 10-31-2017, 07:16 PM
  3. Replies: 4
    Last Post: 05-07-2015, 03:49 PM
  4. Replies: 3
    Last Post: 10-30-2014, 08:45 AM
  5. Replies: 2
    Last Post: 10-09-2014, 01:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums