how to read excel spreadsheet into database (DB2)

G

Guest

hello

I want to read the contents of a spreadsheet and then insert them into a DB2 database. The DB2 stuff I can do, but I don't see a clear example of how to create a recordset from the rows of a spreadsheet. I have a fixed format spreadsheet, so I know that I want the first, sixth, ninth and eleventh columns of the row. I also know that the first is text, the rest are integer.

Any code examples or snippets out there? I would really appreciate any assistance. And, could you reply both here and to my email? it's mairhtin at techsolutionsgroupllc dot com

THANKS!!!!
 
T

Tom Ogilvy

You might look at Mr. Erlandsen's site:
http://www.erlandsendata.no/english/vba/adodao/index.php

He shows Excel to Access, but it should be easily adaptable.

--
Regards,
Tom Ogilvy


mairhtin o'feannag said:
hello,

I want to read the contents of a spreadsheet and then insert them into a
DB2 database. The DB2 stuff I can do, but I don't see a clear example of
how to create a recordset from the rows of a spreadsheet. I have a fixed
format spreadsheet, so I know that I want the first, sixth, ninth and
eleventh columns of the row. I also know that the first is text, the rest
are integer.
Any code examples or snippets out there? I would really appreciate any
assistance. And, could you reply both here and to my email? it's mairhtin
at techsolutionsgroupllc dot com.
 

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