Results 1 to 6 of 6
  1. #1
    m3atball is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Los Angeles, CA
    Posts
    9

    What library am I missing for opening a connection via Microsoft.Jet.OLEDB.4.0?


    I have an Excel 2007 file that will use ADODB connection to extract data from an Access (.accdb) database. It was created a couple years ago and was always working fine. Recently when I tried to modify it for a new project the OpenConnection part stopped working. I think that might be affected by our IT department reinstalling my Office 2007 products. The problem is I don't know which library I am missing to make it run:

    The line of code that's causing the error is:
    Code:
    dim Conn As New ADODB.Connection
    Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & fileName & ";"
    I have it bring up a dialog box for user to pick the .accdb file they want to use. Now if they select the file, I will get the "Run-time error 3706 - Provider cannot be found. It may not be properly installed."

    These are the libraries I've selected:
    * Visual Basic For Applications
    * Microsoft Access 12.0 Object Library
    * Microsoft Excel 12.0 Object Library
    * Microsoft Office 12.0 Object Library
    * Microsoft Forms 2.0 Object Library
    * Microsoft ADO Ext. 2.8 for DDL and Security
    * Microsoft ActiveX Data Objects 2.8 Library
    * Microsoft ActiveX Data Recordset 2.8 Library
    * Microsoft OLE DB provider for OLAP service connection dialog 8.0
    * OLE Automation
    * Microsoft Data Access Components Installed Version (MDAC)

    Now this last one (MDAC) I've read about that I should reall have v2.8 installed. I cannot tell if i'm having the right one. Does anybody know what library I'm still missing?

    Thanks a lot!

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    For Access 2007 (12) you need

    Microsoft Office 12.0 Access Database Engine Object Library

  3. #3
    m3atball is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Los Angeles, CA
    Posts
    9
    Bob -

    Thank you for the reply! That is indeed what I'm missing. It's not even on the list of remaining libraries. Do you know if this is one that can be restored if I uninstall Office 2007?

    Thanks!

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    I believe you would need to install it separately if you uninstall Office 2007.

    http://www.microsoft.com/download/en...ng=en&id=23734

  5. #5
    m3atball is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Location
    Los Angeles, CA
    Posts
    9
    I just installed the AccessDatabaseEngine, included it in the references, and restarted my computer. Sadly, the same run-time error 3706 still showed up for both Providers Microsoft.Jet.OLEDB.4.0 and Microsoft.ACE.OLEDB.12.0. Could it be that some of the DLLs got corrupted over the course of Excel 2003 parallel installtion under complex ITpolicies? I wonder if I should remove Excel 2003, uninstall/re-install Office 2007 and the AccessDataEngine again....

    Many thanks!

  6. #6
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Not sure about that one, but it is plausible.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Check ODBC connection when opening form
    By accessnewbie in forum Programming
    Replies: 1
    Last Post: 02-02-2011, 01:08 PM
  2. Replies: 0
    Last Post: 10-13-2010, 03:28 PM
  3. oledb not installed?
    By bbxrider in forum Access
    Replies: 0
    Last Post: 04-20-2010, 01:36 PM
  4. Replies: 2
    Last Post: 03-23-2009, 05:39 AM
  5. Microsoft Access 2003-Missing Records??
    By kristenlee in forum Access
    Replies: 1
    Last Post: 04-04-2008, 06:43 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums