Microsoft Access
Access slow on a network: causes and fixes
Quick on one computer, slow once colleagues share it over the network? The cause is usually known, and it can be fixed without rebuilding anything.
In short
- On a network, every computer reads the Access file across the network and does all the work itself: some slowdown is normal, but it should not hold up the work.
- The first fix is to split the database: tables on the server, forms and queries on each computer.
- After that, what matters is a connection kept open to the data file, indexes, and forms that load only the records they need.
- Wi-Fi and VPNs are not suitable for a shared Access database: they slow it down and raise the risk of damage to the file.
- If it is still slow after these steps, the data should move to SQL Server, or the program should move to the web.
Why Access slows down on a network
Access is not a database server. When the .accdb file sits in a shared folder, each computer opens it across the network and does all the work itself: it reads the parts of the file it needs, then filters, sorts and calculates. The server only passes the data along.
With a few users and a wired network this works well. With more users, large files or a slow network, every form that opens moves a lot of data and response times grow. Microsoft gives 255 concurrent users as the technical limit, but slowdowns start long before that if the database is not organised for a network.
Shared folder (Access)
- User's computerreads, filters and sorts the data
- Folder on the serverpasses on the parts of the file requested
Data that is not needed crosses the network too
Database server (SQL Server)
- User's computerasks only for what it needs
- SQL Serverfilters, sorts and sends the result
Only the result crosses the network
1. Split the database
This is the fix with the biggest effect, and Microsoft recommends it too. A split database has two files: the back end, with the tables only, in the shared folder, and the front end, with forms, queries, reports and code, copied to each computer. Only the data then crosses the network.
Not split: one file for everyone
- Users' computersopen the whole file over the network×3
- orders.accdb on the servertables, forms, queries and code
Forms and code cross the network every time they open
Split: front end and back end
- Front end on each computerforms, queries, reports and code×3
- orders_be.accdb on the servertables only
Only the data crosses the network
Make a backup
Ask colleagues to close Access and copy the file. If anything goes wrong, you start again from the copy.
Work on a local copy
Microsoft advises splitting a copy opened from your computer's own drive, not from the network folder.
Use the Database Splitter
Database Tools › Move Data › Access Database, then Split Database. Save the back end in the shared folder using a full network path such as
\\server\data, not a mapped drive letter.Give everyone their own front end
Each user needs a copy of the front end on their own computer. A single front end opened by everyone from the network cancels out much of the benefit.
You can save the front end as an .accde file: the VBA code is compiled and users cannot change forms and reports by mistake.
2. Keep the connection to the back end open
When the first user opens the back end, Access creates a small lock file (.laccdb) next to it and deletes it when the last user leaves. If the front end keeps opening and closing the link, this work is repeated for every form and every query, and on a network it costs time.
The solution Access developers use is simple: at start-up the front end opens a hidden form, or a recordset, bound to a small table in the back end, and leaves it open until the program closes. The link stays active and everything after that opens much faster.
If the front end contains VBA code, this change should be made by someone who knows the program, and tested on a copy before users get it.
3. A wired network, no Wi-Fi or VPN
Access reads and writes directly in the shared file. If the connection drops while a computer is writing, the file can be damaged: Microsoft names network interruptions among the causes of damage to shared databases.
- Wi-Fi: a break of a fraction of a second, which nobody notices in a browser, can mean an error or a damaged record in Access.
- VPN and working from home: the connection is too slow for a shared file. Connecting by Remote Desktop to a computer in the office works better, because Access then runs inside the local network.
- Synced folders: Microsoft advises against opening Access databases from OneDrive or SharePoint, because several copies of the file can be created. The same applies to similar services.
4. Indexes, forms and queries
According to Microsoft, indexes improve performance more than any other change. A field often used to search, sort or join two tables should have an index. If it is mainly the reports that are slow, there is a separate guide: Access reports slow to open or print.
- Forms should open on a single record or an already filtered list, not on a whole table with tens of thousands of rows.
- Combo boxes with thousands of entries slow down opening: filter them, or fill them only when they are needed.
- Queries that apply a function to the field used as a filter, for example to take the year out of a date, cannot use the index. Filtering on a date range is much faster.
- Subdatasheets in tables load related data that often nobody looks at: if you do not need them, set the table's Subdatasheet Name property to [None].
5. Maintenance and settings
- Compact and Repair the back end regularly, when nobody is using it and after making a copy: the file grows with every change, and a smaller file is read faster.
- Name AutoCorrect: Microsoft suggests turning it off once object names no longer change, because it slows the database down.
- The same version of Access on every computer, with updates installed.
- Antivirus: constant scanning of the database files, on the server and on the computers, can weigh heavily. Any exclusions are for the person responsible for security to decide.
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 that is no longer enough
If the database is split, the network is wired and maintenance is done, but the program is still slow, the limit is the way Access shares data. There are two routes.
Data in SQL Server, Access stays
The tables move to SQL Server, which is free in its Express edition, and Access uses them as linked tables. Users keep the same forms, but the server does the filtering.
The program on the web
Forms become pages in the browser, the data lives in a database server, and people work from any computer, even outside the office, without a VPN. This is the right route with several sites or many users: see how we bring Access to the web.
To see how big the job is, our free database check counts the tables, forms, reports, macros and modules without the file leaving your computer.
Frequently asked questions
How many users can Access handle on a network?
Microsoft gives 255 concurrent users as the technical limit. In practice, with a split database and a wired network, around ten users usually work without problems; beyond that, it depends heavily on how the program is built.
Is a 2 GB Access file a problem?
Yes: 2 GB is the maximum size of an Access file, system objects included. If the back end is getting close, move the data to SQL Server before it turns into an emergency.
Can the database live on OneDrive or SharePoint?
No. Microsoft advises against opening Access databases from OneDrive or SharePoint, because several copies of the file can be created. To work outside the office, Remote Desktop is safer.
Does splitting the database change anything for users?
Almost nothing: forms and reports stay the same. What changes is how updates are rolled out, because every new version of the front end has to be copied to every computer.
How much does moving to SQL Server cost?
SQL Server Express is free. The cost is the work: moving the tables, reviewing the heaviest queries and testing everything with real data. It depends on the size of the database and how much code it contains.
Sources
- Microsoft: help Access run faster
- Microsoft: split an Access database
- Microsoft: ways to share an Access desktop database
- Microsoft: Access specifications
- Microsoft: compact and repair a database
Official Microsoft pages.