MS Access Database on Sharepoint

MoCA111

New Member
Joined
Feb 6, 2018
Messages
8
Hey Everyone,

Not sure if this is the best place to post this or not, but I am trying to place a MS Access database on sharepoint then have excel run a query to pull data out of it. (Not sure if maybe the excel forum is better suited)

The issue i am running into, is when I change the connection string to the Sharepoint location I get the following error.

Code:
DataFormat.Error: The supplied file path must be a valid absolute path.

Local Database (Working)
Code:
let
    Source = Access.Database(File.Contents("C:\Users\(User.Name)<user.name>\OneDrive - (User.Name)<user.name>\Field Sales DB.accdb"), [CreateNavigationProperties=true]),
    _test = Source{[Schema="",Item="test"]}[Data],

SharePoint Database (Error)
Code:
let
    Source = Access.Database(File.Contents("https://(SharePoint)<sharepoint>/sites/CBU-NLFieldSales/Shared%20Documents/Field%20Mgmt/Field_Sales_DB.accdb"), [CreateNavigationProperties=true]),
    _test = Source{[Schema="",Item="test"]}[Data],

Is this a limitation with Access/Excel and SharePoint or am I just doing something dumb?

Thanks!

Matt</sharepoint></user.name></user.name>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
It's expecting a file path, not an http address. If the Sharepoint site is on your network, can you find out what the UNC name is of the folder where the Access database is located?

I've done something similar with a Sharepoint site on the company network and I managed to find the UNC name from the site admin.
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,039
Members
449,063
Latest member
ak94

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