Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing Excel Data into Access Database

Status
Not open for further replies.

PaulinKC

Programmer
Apr 2, 2002
50
US
I am trying to find some information on how to import an excel sheet into an existing access database.

I have VB.net 2003 Standard installed with Office 2003 Pro.

What would be the easiest way to accomplish this?

Any suggestions would greatly be appreciated!
 
You can use Office automation (which is free) but for decent performance and independence from specific versions of Office it might be easier to use one of the 3rd party .NET components that bypass Office and handle the .xls file directly.

Try I have used the Excel export component and achieved astonishing improvements in performance. I haven't actually tried the Excel reader component but if it's anything like the quality of the export component it will be excellent.

If you use Excel directly you will need to add a reference to the Officexx (11 for 2003?) COM component and then instantiate an Excel application object.

The Excel object model is not easy to follow if you've never used it before and it's too complex to describe in any detail. The key object you will need to understand is the Range object.



Bob Boffin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top