VBA: Could not find installable ISAM with ADOB.Connection to a Sharepoint Web database.

jscranton

Well-known Member
Joined
May 30, 2011
Messages
707
I have the bit of code below that sends a SQL string to accdb stored on my local disk. I am trying to move the accdb to a sharepoint site (an access web database) at the URL below. The old strPath and strConnection work but I am still struggling to adapt the code to the URL.

Will an ADODB connection even work? If so, then there must be something simple I am overlooking. If not, can anyone point me to other avenues?


Code:
    'strPath = "C:\Documents and Settings\jdscranton\My Documents\FeedbackDatabase.accdb"
    'strConnection = "Provider=Microsoft.ACE.OLEDB.12.0;" & "Date Source = " & strPath

    Const URL = "[URL]https://omega.jdconsulting.com/lc/bd/drfi/Feedback[/URL] Database/"
    'Have also tried Const URL = "[URL]https://omega.jdconsulting.com/lc/bd/drfi/Feedback[/URL]%20Database/"

  
    strConnection = "Provider=Microsoft.ACE.OLEDB.12.0;" & "URL = " & URL
    
    Debug.Print strConnection
    Set cnn = New ADODB.Connection
    cnn.Open strConnection
    cnn.Execute strSQL, lngSuccess
    cnn.Close
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
So, I found the answer here: SharePoint Connection String Samples - ConnectionStrings.com

The connection string to sharepoint requires a few more parameters. The site above Explains the parameters.


Code:
    Const URL = "[URL]https://omega.huronconsultinggroup.com/lc/bd/drfi/Feedback%20Database/[/URL]"
  
    strConnection = "Provider=Microsoft.ACE.OLEDB.12.0;WSS; IMEX=1;RetrieveIDS=Yes;" & "Database=" & URL
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,048
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top