Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using ADO to insert values into CSV file
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using ADO to insert values into CSV file
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 "todtown" wrote in message ... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to insert row in a linked file through main file. | Excel Programming | |||
how to insert row in a linked file through main file. | Excel Programming | |||
Read a .xls file and insert its values to certain lines in a text | Excel Programming | |||
Copy values from file A, Find/Replace these values in File B | Excel Programming | |||
Macro to insert values from a file and save another sheet as a .txt file | Excel Programming |