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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Could Not Find Installable ISAM? 1

Status
Not open for further replies.

MajP

Technical User
Aug 27, 2005
9,382
US
Here is my code for establishing an ADODB connection from a word document
Code:
Public connMain As ADODB.Connection
Public Function EstablishConnection(strDBName As String)
'*****************************************************
' Purpose:   Open ADO Connection
'
' Assumptions: Called from Sub Main
'
' Effects: N/A
'
' Inputs:   strDBName - String containing the file path
'                       to the database
'
' Returns: N/A
'*****************************************************
   On Error GoTo errlbl
   Set connMain = New ADODB.Connection
   With connMain
      .CommandTimeout = 15
      .ConnectionTimeout = 15
      .CursorLocation = adUseClient
      .Provider = "Microsoft.ACE.OLEDB.12.0"
      .Open strDBName
   End With
   Exit Function
errlbl:
   MsgBox Err.Number & ": " & Err.Description
End Function

When I use this code here

rsPrograms.Open strSql, connMain, adOpenForwardOnly, adLockOptimistic

I get the error
"Could not find installable ISAM"

I believe the code is fine, because it works on 9 out of 10 computers running the same word document. The computers are all windows XP and office 2007.

Here is a pretty painful thread on the subject
But this confused my more than answer anything.
This talks about registry settings, but does not address ACE

Anyone have any experience with this?

Also it used to work on my computer, but no longer.
 
Your the man! That worked a charm. I searched and searched and did not find that. Worked like a charm.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top