Export FieldNames From Query (1 Viewer)

RainX

Registered User.
Local time
Today, 09:54
Joined
Sep 22, 2006
Messages
89
Hi all,

I'm trying to export a query into a text tab delimited file by using

DoCmd.TransferText acExportDelim, "ImportSpecx", stDocName, File_Path, Yes
I've also tried
DoCmd.TransferText acExportDelim, "ImportSpecx", stDocName, File_Path, True

But none of these export the Query Field Names. Is there any way i can get the Field Names in the exported file?

Thanks in advance
 

petehilljnr

Registered User.
Local time
Today, 09:54
Joined
Feb 13, 2007
Messages
192
My guess is that you have not checked "Include Field Names on First Row" in your "ImportSpecX" specification.

I'd check that first.

Regards,
Pete.
 

Users who are viewing this thread

Top Bottom