Results 1 to 3 of 3

Provider cannot be found error

Threaded View

CamiWami Provider cannot be found error 05-27-2019, 12:59 PM
AliGW Re: Provider cannot be found... 05-27-2019, 01:00 PM
CamiWami Re: Provider cannot be found... 05-27-2019, 01:23 PM
  1. #1
    Registered User
    Join Date
    05-12-2019
    Location
    Pennsylvania, US
    MS-Off Ver
    MS Office 2013
    Posts
    16

    Provider cannot be found error

    I am trying to use use VBA to sync data to and from excel. When I try to sync from the database I get "Run-Time error 3706 Provider cannot be found. It may not be properly installed." I'm not sure what this error means. I've looked online for solutions and have just further confused myself. I'm not sure if I need to change my VBA or what.

    Here is the code I'm using:
    Sub SyncFromDatabase()
    LastLocalChange = Sheet1.Range("B11").Value
        DbFile = Sheet1.Range("SharedFolder").Value
    
        Set objFSO = CreateObject("Scripting.FileSystemObject")
        Set objFile = objFSO.GetFile(DbFile)
    If objFile.DateLastModified > LastLocalChange Then
        Set objConnection = CreateObject("ADODB.Connection")
        Set objRecordset = CreateObject("ADODB.Recordset")
        objConnection.Open "Provider=MicrosoftACE.12.0;" & "Data Source=" & Sheet1.Range("SharedFolder").Value & ";Extended Properties=""Excel 12.0 Xml;HDR=Yes;IMEX=0"";"
        objRecordset.Open "Select*FROM [CustDb$]", objConnection
        Sheet2.Range("A2").CopyFromRecordset objRecordset
        objRecordset.Close
        RefreshContactTable
        End If
    
    
    End Sub

    The error is occurring in the obj.Connection.Open section of the VBA. If any one can please help I would be so thankful!
    Last edited by CamiWami; 05-27-2019 at 01:21 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SQL Server connection string variances - Error 3706 Provider not found
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2021, 01:36 PM
  2. [SOLVED] Provider Cannot be found
    By Biplab1985 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-07-2017, 02:07 PM
  3. Provider Not Found
    By sawoodalam1989 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2013, 01:52 AM
  4. File Not Found error when opening User Form - need help tracing root of error
    By VBA FTW in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2013, 03:48 PM
  5. Run time "3706" Provider cannot be found. It may not be properrly installed
    By worrall in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-02-2012, 10:41 AM
  6. -2147467259 Date provider or other sevice returned an E_FAIL status error
    By marktheman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2007, 07:17 AM
  7. [SOLVED] What Is The Right Provider?
    By Jim Heavey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-06-2006, 02:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1