Using ADO to insert values into CSV file

T

todtown

I have code in Excel that uses ADO to read a CSV file. It works IF the
CSV file has certain headings. That's the problem. The CSV file does
not have these headings. So I thought I might first use a query with
ADO to insert the headings I want. THEN query the CSV. So.....how do I
do that? I guess what I'm asking is what query do I use?

Any help for this newbie would be helpful.

tod
 
T

Tim Williams

It would probably be easier just to create a new file with the correct
headers by first writing out that line and then adding the contents of the
original file.

Not sure you can specify *where* to physically insert a record using ADO,
since that concept is not really relevant to database tables.

Tim
 

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