G
Guest
Hello, thanks for helping me with this very annoying problem. I've searched
message boards and google for over an hour and have not found a solution for
this problem.
Using either a Macro or Visual Basic I need to export a table to tab
delimited text file having the first row of the text file be the column
names. I have everything working EXCEPT having the column names exported.
Here is my current VB Code:
DoCmd.TransferText acExportDelim, "kjmSpecs", "product_table_import",
"c:\mytable.txt", True
The "kjmSpecs" is my specification file that tells Access to export it as
Tab Delimited rather than CSV.
The "True" is supposed to mean to also export the column names.
For some reason the column names are never exported!
As a test I wrote similar code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"product_table_import", "c:\spreadsheet.xls", True, "A1: ZZ99999"
and that DID export the column names.
What is the problem? Does anybody have any idea why the column names will
not export into the text file?
Thanks for your help!
message boards and google for over an hour and have not found a solution for
this problem.
Using either a Macro or Visual Basic I need to export a table to tab
delimited text file having the first row of the text file be the column
names. I have everything working EXCEPT having the column names exported.
Here is my current VB Code:
DoCmd.TransferText acExportDelim, "kjmSpecs", "product_table_import",
"c:\mytable.txt", True
The "kjmSpecs" is my specification file that tells Access to export it as
Tab Delimited rather than CSV.
The "True" is supposed to mean to also export the column names.
For some reason the column names are never exported!
As a test I wrote similar code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"product_table_import", "c:\spreadsheet.xls", True, "A1: ZZ99999"
and that DID export the column names.
What is the problem? Does anybody have any idea why the column names will
not export into the text file?
Thanks for your help!