Microsoft Access
Access on OneDrive, SharePoint or Teams: what to do
The database sits in a synced folder and you see duplicate copies, locks or errors? Here is what Microsoft says and where to move it.
In short
- Microsoft lets you save an Access database to OneDrive or a SharePoint document library, but advises against opening it from there.
- The file may be downloaded to the computer and uploaded again after saving: if several people open it, multiple copies of the database and unexpected behavior can occur.
- Files on the Teams Files tab are stored in a SharePoint site, so the same warning applies. For Dropbox and Google Drive, the same caution is wise.
- The alternatives Microsoft gives are an office network folder and, with several users, a split database: tables on the server, a front end on each computer.
- To share the data in a more structured way, Microsoft points to SharePoint lists or a database server such as SQL Server.
What Microsoft says about databases in the cloud
Microsoft separates two things. Saving an Access file to OneDrive or a SharePoint document library is possible. Opening it from those locations to work in it is not recommended.
The reason is the way syncing works: the file may be downloaded to the computer for editing and uploaded again after saving. If several people open the same database from SharePoint, Microsoft says multiple copies of the database can be created and unexpected behavior can occur.
Opened from OneDrive or SharePoint
- Users' computerseach works on a downloaded copy×3
- Cloud folderreceives the copies after saving
Multiple copies of the database and unexpected behavior
In a network folder
- Users' computersopen the same file×3
- Shared folder in the officeone database for everyone
Everyone works on the same data
The warning applies to all types of Access file: a single database, one split into front end and back end, and the .accdb, .accdc, .accde and .accdr formats. It covers Access for Microsoft 365, Access 2024, 2021, 2019 and 2016.
How the problem shows up
People who keep the database in a synced folder usually notice it in one of these ways:
- Several copies of the same database appear in the folder, and it is not clear which one is right.
- Data entered by a colleague does not show up on the other computers, or disappears.
- Access reports that the file is already in use or locked, even when nobody seems to be using it.
- The database becomes slow to open and save, or shows errors that were not there before.
Microsoft does not list the symptoms one by one: it sums them up as multiple copies of the database and unexpected behavior. For all of them the underlying fix is the same: take the database out of there. If the file has already given errors, the guide on a corrupt Access database explains how to recover it, and the one on Access saying the file is already in use covers the other causes of the lock.
Teams, Dropbox and Google Drive
Many offices do not use OneDrive directly, but the Files tab of a Teams channel. Microsoft explains that those files are stored in a SharePoint site: the Files tab of a standard channel is a folder in the default document library of the team's site. A database uploaded to Teams is therefore a database in SharePoint, and the same warning applies.
Microsoft does not mention Dropbox, Google Drive or similar services. Their folders also copy files between the computer and the cloud, though: to be safe, treat them like OneDrive and use them only for backups, not for opening the database.
To find out whether this is your case, check where the file is: if its path in File Explorer goes through a OneDrive folder, if you opened the database from the Files tab in Teams or from a SharePoint library, or if it sits in the Dropbox or Google Drive folder, the database is in a synced folder.
1. Move the database to a network folder
For a database used by a few people in the office, Microsoft describes a simple way to share it: the file in a shared folder on the network, opened by everyone at the same time.
Have everyone close Access
The database must be closed on every computer, so nobody writes to the file while you move it.
Make a backup
Copy the database, and any duplicate copies, to another folder with the date in the name. If something goes wrong, you start again from there.
Pick the right copy
If there is more than one copy, open them one at a time and check which one holds the latest data entered. Data that ended up only in the others has to be re-entered by hand.
Copy it to the shared folder
Put the file in a shared folder on the office network and check that every user can read and change it.
Check the shared open mode
On each computer, under File › Options › Client Settings, the Default open mode must be Shared. It is the starting setting, but Microsoft advises checking it.
Create a shortcut on each computer
Put a shortcut to the file in the shared folder on each user's desktop, so nobody looks for it in the old location any more.
Remove the old copy from the synced folder, or rename it clearly: if it stays there with the same name, sooner or later someone opens it out of habit and the data splits again.
OneDrive is still useful for backups: a closed database can be saved there. To use one of those copies, first copy it to a folder on the computer or the network. There is more on this in the guide on backing up an Access database.
2. Split the database if several people use it
Microsoft recommends considering splitting any database shared over a network: it improves performance and reduces the risk of damage to the file. The tables go into a file on the server, the back end; forms, queries and reports go into a file copied to each computer, the front end. If a database closes badly, the damage usually stays in that user's copy of the front end.
- 1Backupbefore touching the file
- 2Back end on the networkthe tables, in a shared folder
- 3Front end on each computerin a folder that is not synced
- 4Cloud for backups onlywith the database closed
- Microsoft recommends making a backup before splitting the database and starting from a copy on the computer's own drive.
- The back end goes in a location everyone can reach, given as the full network path and not as a drive letter, which can change from one computer to another.
- The front end is an Access file too: Microsoft's warning applies to it as well, so keep it in a folder on the computer, not on OneDrive.
- If the database is already split and the back end is on OneDrive, first copy it to the network folder, then relink the tables from External Data › Linked Table Manager.
The steps of the guided split are explained in the guide on Access slow on a network.
3. Share the data in a more structured way
The database often ends up on OneDrive because several people need it, including outside the office network. Besides the network folder, Microsoft gives two routes for sharing Access data:
Tables in SharePoint lists
Access can link to the lists on a SharePoint site or move its tables there: the lists stay linked to the database, and the export wizard moves all the tables together while keeping their relationships. This is different from putting the file in a document library: SharePoint holds the data, not the Access file.
Data in a database server
The tables move to a product such as SQL Server or Azure SQL, and each user keeps a local copy of the Access file linked to the tables. Among the benefits, Microsoft names backups even while the database is in use, accounts to decide who sees which tables, and sizes well beyond the 2 GB of an Access file.
Microsoft warns that a database linked to SharePoint lists should not be handed out as copies to several users: the link information is not encrypted, and someone with bad intentions could change where it points. It is best to have this assessed by whoever manages Microsoft 365 in the company.
The move to SQL Server is described in the guide from Access to SQL Server; the ways to use the database from home or another site, Remote Desktop included, in the one on Access on the web.
What not to do
- Do not open the database from the Files tab in Teams or from a SharePoint library, not even “just for a moment”.
- Do not move the front end to OneDrive to hand it out more easily: Microsoft's warning also applies to
.accdeand.accdrfiles. - Do not choose which copy to keep based only on the file date: check the data it contains.
- Do not delete the duplicate copies before recovering the data they contain and making a backup.
Would you like an opinion on your case?
Send us the file: within 48 hours you receive a free written assessment, even if the answer is that a small fix is enough.
When a web application makes sense
If the database ended up in the cloud because colleagues work from different places, from home, another site or on the road, the network folder solves the damage but not that need. This is where an Access database shows its limit: it is a file that has to be opened on a Windows computer.
A web application opens in the browser, keeps its data in a database server, and has no files to sync and no copies to compare. Here is how we turn Access databases into web applications; meanwhile, our free database check shows how many tables, forms, macros and modules your file contains, without it leaving your computer.
Frequently asked questions
Can the database stay on OneDrive if only one person uses it?
Microsoft advises against opening an Access database from OneDrive in general, not only when several people use it. Keep it in a folder on the computer that is not synced, and put only backups on OneDrive, with the database closed.
Is it fine if only the back end is on OneDrive?
No: Microsoft states that the warning also applies to split databases. The back end goes in a shared folder on the office network, and the front end in a local folder on each computer.
Is the Files tab in Teams different from SharePoint?
No: Microsoft explains that the files on a team's Files tab are stored in a SharePoint site. Opening the database from Teams is the same as opening it from a SharePoint document library.
How can the right copy of the database be identified?
First make a copy of all of them, then open them one at a time and check the latest records entered in the main tables. Keep the one with the latest data, and re-enter by hand the data that is only in the others.
Can backups be saved to OneDrive?
Yes. Microsoft allows saving a database to OneDrive; it advises against opening it from there. Make the copy with the database closed and, to use it, first copy it to a folder on the computer or the network.
Sources
- Microsoft: ways to share an Access desktop database
- Microsoft: split an Access database
- Microsoft: how Teams and SharePoint work together
Official Microsoft pages.