A couple of things:
1. Try to avoid ODBC, and use OleDB if you can.
Google "IDataReader Excel" and you'll find connection strings for that.
2. Can you read the data? ( Do a "Select * from [Sheet1$] " and find out.
This will help determine if your connection string is off, or you're ONLY
having an insert issue.
3. I believe (long term memory working here) there is something about a
column having to have a "primary key" on it (yes, I"m talking about excel)
before you can do update/insert commands on an excel spreadsheet.
You'll have to search, I don't know any links for key phrases on that one.
...
Please post your resolution when you're done so other can learn from the
experience.
.paul. said:
how can i write to an excel .xls file using odbc?
i've read in several places that its possible but i can't find an example.
i have managed to read an excel file using odbc