Subject: index lost when export to csv file
Posted By: chacquard Post Date: 10/9/2006 11:57:10 AM
Hello,

I have a number of indexed tables I need to export in a csv file.  But for some reason, the index is "lost" during the export.

Here is my code:

DoCmd.TransferText acExportDelim, "BrokersBSpecs", _
   "BrokersBCSV", "k:\brokerB.csv", False

The "brokersBSpecs" has the specifications for the export and it also includes the index.

Do anyone of you know how I can keep my index.

Thank you!

Reply By: mmcdonal Reply Date: 10/10/2006 1:57:43 PM
I usually go the long way around and create a text file using Scriptng.FileSystemObject and then creating a local recordset on the data, and then writing a line at a time in the format I want. I like to code, though. You wouldn't be the first person to call me a brute force coder.

Need help on this? Maybe another poster has a more elegant solution. I would have thought the specification file would do it.



mmcdonal

Go to topic 24907

Return to index page 152
Return to index page 151
Return to index page 150
Return to index page 149
Return to index page 148
Return to index page 147
Return to index page 146
Return to index page 145
Return to index page 144
Return to index page 143