Exporting csv file but headers not created

G

Guest

Hi there,

Am trying to export query to a CSV file with header details to a specific
location.

Nearly have it working in that the file is created and stored where I expect
it to be, except tthe file headers are not created even though I appear to
indicate I wish them to be as per the code below.

DoCmd.TransferText acExportDelim, "SAP_EXTRACT", "qry_create_journal",
strDirectory & "\IA_RBC_Journal.CSV", True

Am working in Access 2000. Any ideas or suggestions?

Cheers
 
G

Guest

Very strange as it works for me using the same code in A03. Some WAGs:

Change True to -1. Probably didn't help but worth a try.

Hard code in the file path and see what happens.

Remove the export specification and see if that helps.

Last thought: By "file headers" am I correct in thinking that you meant
"field headers"?
 

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