could not find installable ISAM

G

Guest

I try to connect to my Access db using the following code:
Dim connectString As String
connectString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"DataSource = C:\Access\db1.mdb"


Dim myDB As ADODB.Connection
Set myDB = New ADODB.Connection
myDB.Open connectString
------------------
when I run the code, it pops up the error message, "Could not find
installable ISAM"
Can you tell me why?
Thank you, Curie
P.S. I already create the DSN for the database
 
D

David Lloyd

Curie:

Try the connection string with the word DataSource as two words. For
example:

connectString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source = C:\Access\db1.mdb"

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


I try to connect to my Access db using the following code:
Dim connectString As String
connectString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"DataSource = C:\Access\db1.mdb"


Dim myDB As ADODB.Connection
Set myDB = New ADODB.Connection
myDB.Open connectString
------------------
when I run the code, it pops up the error message, "Could not find
installable ISAM"
Can you tell me why?
Thank you, Curie
P.S. I already create the DSN for the database
 

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