Results 1 to 3 of 3
  1. #1
    jj1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    128

    Access exports ID instead of percentage

    AQuery drives data from table1 with 3 fields field 1 is autonumber, field 2 is field name and third field has percentages so a data type is %


    When I am using the code below it's transferring the % as ID. so I get field 2 instead of field 3
    Code:
     Dim Book3 As String
        Book3 = "C:\Users\Desktop\1\book3.xlsx"
        DoCmd.TransferSpreadsheet acExport, , "AQuery", Book3
    How can I solve this

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Then your query is wrong...it will export each field as is.

  3. #3
    jj1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    128
    SELECT ATable.Results1, ATable.Results2, ATable.Results3, ATable.Results4, ATable.Results5, ATable.Results6, ATable.AName
    FROM ATable;
    Here is my query
    Result field properties:
    datatype = percentage
    Field size single
    Format percentage
    decimal places 2

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

Similar Threads

  1. Saved imports and exports disappeared from manage data tasks view
    By mmoria2312 in forum Import/Export Data
    Replies: 8
    Last Post: 11-07-2016, 05:07 PM
  2. How Access exports tables from a server
    By gg80 in forum Access
    Replies: 11
    Last Post: 11-16-2013, 06:17 PM
  3. Replies: 9
    Last Post: 11-04-2013, 03:16 PM
  4. how to format percentage in access report
    By mdnikki in forum Reports
    Replies: 2
    Last Post: 02-11-2013, 01:20 PM
  5. Problem with Query exports to Excel
    By nokeefe in forum Access
    Replies: 9
    Last Post: 12-07-2011, 12:50 AM

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