Share an access Database on Sharepoint - ms-access

I have created quite a large Access 2016 db. It is now ready to share with the business and needs to be put onto SharePoint. I've tried just uploading the file to a SharePoint document library, however users cannot edit the database (there is a lot of VBA code that runs SQL commands that write data input by users into the database).
Is there a way to share the database that allows users to open it from SharePoint and let the VBA write to the database/tables?

That is not possible as SharePoint isn't an SMB fileshare, neither is OneDrive, DropBox, etc.
The SMB fileshare is offered by a Windows Server or a Linux box with Samba installed.

Related

Best way to download data from Sharepoint (I'm in need for some automation)

Basically there are some shared Excel files on my corporation's Sharepoint and I need local copies of It for data analysis. I am able to manually download all I need, but I need to automate this work somehow.
I'm writing this post because of issues regarding two aspects of this problem:
Microsoft Licenses: as I'm using a personal account on a corporation domain (for my work), so Microsoft won't let me setup gateways on Power Automate. I was able to create a Power Automate Flow that does exactly what I need, but my end point is messed up (can't connect to my local machine so I can create the file I need with the data from Sharepoint). I cannot acess these files with other account.
Two-factor authentication: I'm unable to use APIs with Sharepoint apparently because of this, and the authentication is something that I cannot disable due to my corporation's policies.
Any workaround is viable? I need some new ideas.
You could use PnP.PowerShell to automate this task.
For authentication issue just register an app on the target site collection and grant is access. Then use this app credentials to connect to the SharePoint site and download the files.
Reference -
To create a new app - https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/register-sharepoint-add-ins#to-register-by-using-appregnewaspx
Grant access to this app - https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs#setting-up-an-app-only-principal-with-tenant-permissions
Use this app to authenticate - https://pnp.github.io/powershell/cmdlets/Connect-PnPOnline.html#example-3

Write to MS Access DB located on shared drive from Web Form

I am pretty sure the answer is "No" but I figured I would ask because I was not able to find a solid answer.
I am trying to create a web form that would write to an MS Access database that is stored on a Shared Network Drive. Is this something that is possible without a server?
No. Web forms require a web server to run (specifically, SharePoint server).
Interfacing with Access on a shared network drive is possible (either directly through Access or through another application), but not through a web form.
You can use an ODBC DNS to access a MS Access file that is share on a drive.

How to create a DSN file for an Access Database

I've created an activity logger in Access which will be used by people in a different site.
In one I built previously it also had a DSN file to enable the second site users to use it, but I can't for the life of me remember how you go about creating one of these.
Could someone please run me through how it is done?
Under Windows 10, search for "ODBC Data Sources" and choose the 32-bit version. You can then choose System and File DSNs.

Will my team have to connect to ODBC if the Excel tool that's connected to Azure is saved on OneDrive?

I am hosting an Excel tool on OneDrive and sharing it with my team. I want to lock it up as a read only to ensure my team can’t delete it. They would need to download a new file locally every time they wanted to use the Excel tool. This Excel tool would be pulling data from Azure.
Would they need to connect to ODBC every time they wanted to use the Excel tool they downloaded from OneDrive or would it already be connected to the Azure database?
From your comments, if all you want is the Excel file to be read-only but not necessarily the data then you should use Excel to protect the sensitive sheets and restrict delete privileges on OneDrive.
You might want to consider Office 365 in lieu of OneDrive as it will have more security controls you can employ over the access controls on the file.
Here is an article about how to setup Excel to consume the Azure SQL DB directly:
http://social.technet.microsoft.com/wiki/contents/articles/1816.connect-microsoft-excel-to-windows-azure-sql-database.aspx

Microsoft Access 2010+ user rights

With Access 2007 Microsoft stopped security on userlevel. Does anyone know a possibility to give user permissions?
Only trusted user have access to my database. Nevertheless, there are too many and they WILL accidentally damage the data structure, like deleting or more 'evil' editing a primary key of the main table, or something similar.
(I do not need any safety against hacking)
The problem is, I can't simply run a SQL Server. The users are in a private network, the file is on a secure private network drive, and they do not have administrative rights on their computers to install additional software, so the solution has to be done with windows and access 2010+.
Access 2007 and later still support user-level security for databases in the older MDB format. If your application doesn't require features only available in the newer ACCDB formats, you can use a shared MDB for data storage and the users could each have their own copy of a front-end db which links to the shared MDB tables.
If that is not satisfactory, "compile" your ACCDB to an ACCDE version and then rename the ACCDE to ACCDR. The ACCDR can then only be opened in runtime mode, which restricts the operations available to your users. Basically you can allow them to interact with the database only with forms you provide --- so you can control what they can do.