Results 1 to 3 of 3
  1. #1
    Valavien is offline Novice
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    2

    Transfertext Export with Specification specifies Single quotes but is adding double

    Hi all,

    I am exporting data from an Access 2007 table saved as a 2003 mdb.

    My table has only one field and it's a text field.

    I am exporting a row of 8 digit numbers and my specification adds single quotes so the number should look something like this '12345678' in my txt file.

    I have run this as a macro and it works but when I use DoCmd.TransferText acExportDelim, Export_File_Sync, "tbl_combined_results", GetDBPath & "File_Sync" & ".txt" the output is "12345678"

    I need ' not "

    Any ideas? Have tried searching for an answer but not sure if I am using the right search words.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    I did a test of exporting a query that added apostrophes to the field value. The resulting text file was quotes and apostrophes, like: "'12345678'"

    Try acExportFixed instead.
    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.

  3. #3
    Valavien is offline Novice
    Windows XP Access 2007
    Join Date
    May 2014
    Posts
    2
    Thanks for the tip, I tried that and got a specification error. I believe that's because my spec is for delimited. I then realised that I can add the apostrophes using a query and then export to text using acExportFixed

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

Similar Threads

  1. Single and double quotes in a INSERT statement
    By dccjr in forum Programming
    Replies: 16
    Last Post: 03-14-2013, 09:50 PM
  2. Deleting double quotes out of my table?
    By kawi6rr in forum Queries
    Replies: 3
    Last Post: 02-19-2013, 04:32 PM
  3. Replace double quotes
    By Kay in forum Programming
    Replies: 27
    Last Post: 12-10-2012, 10:04 PM
  4. Replies: 1
    Last Post: 03-25-2010, 03:12 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