954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Linking Excel up with VB6

Please Help!!
I am designing a program in vb6 that is to be linked up to databases in both access and excel. The problem is when I try to link up the database's using the data control I get the following message: "Couldn't find the installable ISAM". I am kinda new to the vb world but I have been told that this is something to do with MDAC.
I have been able to connect to the access database by converting the file to an access 97 format and using the data control, but I still can't find anything to connect with excel.
Can anyone help?

Thanks

Dazpenn
Newbie Poster
4 posts since May 2006
Reputation Points: 10
Solved Threads: 0
 

The EASYEST way to link to ANY data is by ADO using ODBC.
You can create the connection to excel like this:

Go to your control panel, in the administrative toold, look for the ODBC or Data Sources. Creaet an ODBC for your excel file, it's not that hard. Then using ADO or the ADO control, you can connect to it on VB. for instance.

Dim Conn as Connection

Set Conn = New Connection

Conn.Open "ODBC NAME HERE"

that's it, you're connected. in the case of useing the ADO Data control, then you can use the ODBC NAME as well to connect to the file. Let me know how that does.

extofer
Posting Whiz in Training
239 posts since Aug 2005
Reputation Points: 8
Solved Threads: 6
 

Make sure to read the sticky thread: http://www.daniweb.com/techtalkforums/thread41057.html to get you started. Read this page for info on the error message: http://support.microsoft.com/kb/155666

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You