How can I include the header in .txt export

B

Bruce

Hi,

Running the following to export my text file.

DoCmd.TransferText acExportDelim, mySpec, myStr, destdir & myFIleName &
".txt", False, ""

Would like to include the header in line 1.
Is there something I need to do in vba or is it in the export specification?
n.b. Using Access 2k3

Bruce
 
N

Nikos Yannacopoulos

Bruce,

Change False to True in the [HasFieldNames] argument!

HTH,
Nikos
 
Top