exporting with field names

J

JIM H.

Hello,
I export a table to a csv file with "DoCmd.TransferText
acExportDelim" and I would like to have field names in the
output file too. How can I do that?
Thanks,
Jim.
 
R

Roger Carlson

The 5th parameter in the command line specifies whether the it should export
fieldnames:

DoCmd.TransferText acExportDelim,,"yourtablename", "c:\the\file\name.csv",
True

--Roger Carlson
www.rogersaccesslibrary.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top