Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access Modules daovba ado > Error: Cannot f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1471 of 1609
Post > Topic >>

Error: Cannot find installable ISAM (On Some db but not on others)

by =?Utf-8?B?SkNJcmlzaA==?= <JCIrish@[EMAIL PROTECTED] > May 5, 2008 at 01:44 PM

Environment is Access 2007 Vista Ultimate 64 bit. 

The following code runs fine in a standard module on the database where it

was written. If I take the same code and put it in another database,
changing 
the project and table references where appropriate, and step through it, I

get the run-time error "Cannot finds installable ISAM" at the code line 
"cnn1.Open strConnection"

Can someone tell me what gives here and how to correct this?



Sub TestRecordCount()
Dim cnn1 As ADODB.Connection
Dim rsMyPeople As ADODB.Recordset
Dim strConnection As String

strConnection = "Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=" & CurrentProject.Path & "\Contacts.accdb;"


Set cnn1 = New ADODB.Connection
cnn1.Open strConnection

Set rsMyPeople = New ADODB.Recordset

With rsMyPeople

    .CursorType = adOpenStatic
    .Open "[Contacts Primary Data Table]", cnn1
End With


Debug.Print "The Total Number of Records is: " & rsMyPeople.RecordCount

cnn1.Close

Set rsMyPeople = Nothing
Set cnn1 = Nothing

End Sub
 




 1 Posts in Topic:
Error: Cannot find installable ISAM (On Some db but not on other
=?Utf-8?B?SkNJcmlzaA==?=   2008-05-05 13:44:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 15:10:15 CST 2008.