I have vba code that writes data to a table and then exports that table. I need it to export without the double quotes around every field but I cannot get it to work. Here is my docmd code:
DoCmd.TransferText acExportDelim, SpecCSVExport, tempTable, ExportFileName
(tempTable and ExportFileName are variables for the tablename and filename as the filename is different each time)
If I go to that table, select export, text file manually, open the specification file (SpecCSVExport), it works fine, but in code it does not, I get this:
"UA","160943","","5170","","","IN000091641","Catering","450.00"
instead of this (from manual export)
UA,160943,,5170,,,IN000091641,Catering,450.00
I have deleted, recreated and renamed the spec file multiple times and cannot see what I am doing wrong. I'm using Access 2007.
Thanks so much,
Diane
DoCmd.TransferText acExportDelim, SpecCSVExport, tempTable, ExportFileName
(tempTable and ExportFileName are variables for the tablename and filename as the filename is different each time)
If I go to that table, select export, text file manually, open the specification file (SpecCSVExport), it works fine, but in code it does not, I get this:
"UA","160943","","5170","","","IN000091641","Catering","450.00"
instead of this (from manual export)
UA,160943,,5170,,,IN000091641,Catering,450.00
I have deleted, recreated and renamed the spec file multiple times and cannot see what I am doing wrong. I'm using Access 2007.
Thanks so much,
Diane
Last edited: