export to text losing column headers

  • Thread starter Thread starter dleake
  • Start date Start date
D

dleake

Guest
hi all,

I need to automate a process to export an Access table to a tab delim text file. I set up an export spec manually, including selecting the 'Include Field Names on First Row' check box. However when I run the export from code the text file that is created has all of the data but without the headers.

Have I missed something or is there a way to force Access to include the headers? I'm having to run the command from an Excel VBA module, code looks like:

Access.DoCmd.TransferText acExportDelim, "tab_delim_text", "tblImport_text", "C:\Documents and Settings\xyz\Local Settings\Temp\test.txt"

Thanks for any help

Dean
 
missing column headers - problem solved

i see there is a parameter after filename called 'HasFieldNames', the clue is in the name i guess...
 

Users who are viewing this thread

Back
Top Bottom