We help IT Professionals succeed at work.
Get Started

Excel to Access 2007 Connection String

Last Modified: 2013-11-29
What is the correct connection string for downloading information from a split Access 2007 database (on a network) into Excel 2007 when the users computer does not have Access installed?  I need Excel to download information from this database on a regular basis.  The code (See below) worked perfectly on every computer before I split the database...now it only works on computers that have Access installed.  Computer that do not have access installed show the error "Run-time error '-2147467259 (80004005)':  Could not find installable ISAM."  I have looked at both the registry and the code, and can't seem to correct the issue.  Any and all ideas are welcome
Const strConnectionString As String = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=" & _
        strDatabaseLocation & ";Jet OLEDB:Database Password=" & Password

    Dim Connection As ADODB.Connection
    Dim RecordSet As ADODB.RecordSet
    Set Connection = New ADODB.Connection
    Set RecordSet = New ADODB.RecordSet
    Connection.Open strConnectionString
    RecordSet.Open strSql, Connection, adOpenStatic, adLockOptimistic
    rngTargetSheet.Name = strSheetName
    rngTargetRange.CopyFromRecordset RecordSet
    Set Connection = Nothing
    Set RecordSet = Nothing

Open in new window

Watch Question
Excel and VBA Expert
This problem has been solved!
Unlock 2 Answers and 6 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE