Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to insert row in a linked file through main file. Rafia Excel Programming 0 March 20th 07 05:01 AM
how to insert row in a linked file through main file. Rafia Excel Programming 0 March 20th 07 04:55 AM
Read a .xls file and insert its values to certain lines in a text Thegman Excel Programming 2 December 5th 05 04:11 PM
Copy values from file A, Find/Replace these values in File B shockley Excel Programming 1 September 22nd 03 12:32 AM
Macro to insert values from a file and save another sheet as a .txt file Frank[_16_] Excel Programming 2 August 28th 03 01:07 AM


All times are GMT +1. The time now is 12:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"