bill201
asked on
how to export from microsoft access 2010 to txt (tab delimited)
hi
i want to export some data from access to some software and i need to format the data in a text tab delimited format, and i tried to do this with this method
DoCmd.TransferText acExportDelim, , "ActionQ", "C:\Query2.txt", True, ""
the code works fine, but the problem is that the data that i exported in the text file is with Quotation mark and commas around every part of data like this:
"01/01/2012","test"
but i need clean data and just a tab between every cell is there some other method that will export without any extra characters?
i want to export some data from access to some software and i need to format the data in a text tab delimited format, and i tried to do this with this method
DoCmd.TransferText acExportDelim, , "ActionQ", "C:\Query2.txt", True, ""
the code works fine, but the problem is that the data that i exported in the text file is with Quotation mark and commas around every part of data like this:
"01/01/2012","test"
but i need clean data and just a tab between every cell is there some other method that will export without any extra characters?
ASKER
thanks for your answer but i prefer do to it with vba code (i will need to do it daily so i prefer to do it with one single code)
that is why you need to create an Export Specification first.
after you have created the Specification , you will just use
DoCmd.TransferText acExportDelim, "ExportSpecName" , "ActionQ", "C:\Query2.txt", True, ""
after you have created the Specification , you will just use
DoCmd.TransferText acExportDelim, "ExportSpecName" , "ActionQ", "C:\Query2.txt", True, ""
ASKER
thanks for your excellent answer
is there some way not to delete the data in the file and just to add the new data in another row?
is there some way not to delete the data in the file and just to add the new data in another row?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok maybe i will don't need this code
anyway thanks alot
anyway thanks alot
ASKER
dear capricorn1
i submit the question again
please give a look in the link https://www.experts-exchange.com/questions/27996236/how-to-export-from-microsoft-access-2010-to-txt-tab-delimited.html
i submit the question again
please give a look in the link https://www.experts-exchange.com/questions/27996236/how-to-export-from-microsoft-access-2010-to-txt-tab-delimited.html
1.right click on the table
2.select export > Text file
click on Browse and locate the destination folder
3. (you can accept the proposed name or change it)
click Save, then click OK
4. In the export text wizard select the type (Delim Fixed) width
5. Follow the wizard, before clicking on Finish
5a .Click Advanced
6. In the Export Specification dialog box Field Information List, correct any descrepancies
7. click save as, give the specification a name <-- this is the specification name that you will use in the command line below
DoCmd.TransferText acExportDelim, "ExportSpecName" , "ActionQ", "C:\Query2.txt", True, ""