Using Excel file stored on Sharepoint to write to an Access database

Matt_13

New Member
Joined
Sep 30, 2014
Messages
2
Hi everyone

I have a form in an Excel file talking to Access nicely and recording the user's input on the form when on my local drive. I have also been able to get the Excel file on the Sharepoint site talking to the Access database if the database is stored on a shared drive. Unfortunately, the size of the organisation I work for means that not everyone has access to the same shared drives so I hoped to store the Excel file and Access database on a sharepoint site and have Excel write to the database.

My problem is that I am unable to get the Excel file to write the data back to the Access file when they are both stored on the Sharepoint site. I have tried a few different ways of setting up the connection string, such as using ThisWorkbook.Path (which correctly retrieves the sharepoint document library address) with the database file name tagged on the end of the string. I've also tried getting the web address of the database itself and using that hardcoded. Both fail at the point of opening the database connection with a 3055 run time error.

I've worked out that when the Access database is opened directly from the Sharepoint site, it creates a temporary file on the user's local drive. The Excel file does not do this and I believe it is this that is causing the problem.

I know that sharepoint does function like an Access database with lists etc but I wanted the additional functionality of being able to programme an Excel form using vba, such as being able to automatically generate emails etc. I was also hoping to use Access as the intermediary between our big databases which are normally accessed using SQL Management Studio so that MI could be pulled from both the form submission and the records created in our SQL database when the second part of the process once the form has been submitted (not something to worry about here) occurs.

Does anyone know of a solution? Is it even possible to do what I want or am I going to have to stick with sharepoint lists?

Thanks for any help/guidance.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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