Microsoft Access
Access security warning: what to do
The database opens, the data is there, but the buttons do nothing? Access has disabled part of the content: here is how to handle it properly.
In short
- By default, Access disables potentially unsafe content in a database, such as code, certain macro actions and action queries.
- The yellow bar under the ribbon has an Enable Content button: fine for a trusted file, but it can come back if the database changes.
- The red bar appears when the file comes from the internet: it is removed from the file's properties.
- For a database used every day, the stable fix is a trusted location on the computer.
- Never enable all macros: that is exactly the gap viruses use.
What happens when the warning appears
When you open a database that Access does not consider trusted, it still opens it, but in disabled mode: the data can be seen and consulted, while anything that could change the computer or the data automatically stays switched off.
Microsoft refers to potentially unsafe code and gives certain macro actions and action queries as examples, meaning the queries that update, add or delete records. That is why the typical symptom is a database that looks broken: the start form appears, but the buttons do not respond and the procedures do not run.
This applies to Access for Microsoft 365, Access 2024, 2021, 2019 and 2016, whatever version the database was created with.
Yellow bar or red bar: not the same thing
The yellow bar appears under the ribbon with an Enable Content button. It is the most common case: the database is not in a trusted folder, and Access asks you whether to trust it.
The red bar is different. Since 2022, Office for Windows, Access included, blocks macros in files that come from the internet, such as an email attachment or a browser download. In this case there is no button to enable them.
SECURITY RISK Microsoft has blocked macros from running because the source of the file is untrusted.
Learn MoreIf you see no bar at all but the buttons do not work, the bar may have been hidden: this is explained further down.
Before enabling: can the database be trusted?
The warning exists for a good reason. Before enabling the content, answer three questions:
- Do you know who created the database, and where this copy comes from?
- Is it the program you normally use, in its usual folder, or a file that arrived out of the blue?
- Do you really need the macros and code to work, or is consulting the data enough?
A file “to enable” that arrives without warning is the classic virus trick, even when the sender looks like someone you know. If in doubt, check with the sender by another means, not by replying to the same email.
1. Enable the content once
For a trusted database opened now and then, one click is enough: on the yellow bar choose Enable Content and Access reopens it with macros and code active.
Microsoft warns that you may need to repeat this if the database changes. If the bar keeps coming back, the solution in step 3 is the better choice.
2. Remove the red bar from a downloaded file
If the database reached you by email or through the browser and the bar is red, the block sits on the copy of the file. For a trusted file, the route Microsoft gives is this:
Close the database
If it is open in Access, close it.
Open the file's properties
In File Explorer, right-click the file and choose Properties.
Tick the unblock box
At the bottom of the General tab there is a security note with a box to unblock the file. Tick it and confirm with OK.
Open the database again
Access now treats it as a local file: if the yellow bar appears, step 1 applies.
For files that often come from the internet, such as a new version of the program sent by whoever develops it, a trusted location is the better choice.
3. A trusted folder for the everyday database
A trusted location is a folder whose databases Access opens with all content active, without the yellow bar and without checking whether the file came from the internet. It is the stable solution for the program used every day.
Find the database's folder
With the database open, the File tab shows the file's path in the Info section.
Open the Trust Center
Choose File › Options › Trust Center › Trust Center Settings › Trusted Locations.
Add the folder
Use the button to add a new location and point it to the folder. If needed, you can trust its subfolders as well.
Close and reopen the database
From then on it opens without warnings, as long as it stays in that folder.
- 1The databasein a folder on the computer
- 2Trusted locationthe folder is on the Trust Center list
- 3Access opens itwithout the yellow bar
- 4Everything worksbuttons, code and queries
A trusted location accepts any file. Do not make the Downloads folder, the desktop or folders where anyone can save files trusted.
4. Database in a network folder
For a shared folder on the server, Access needs one more step: in the Trust Center you have to select the option that allows trusted locations on the network. Microsoft, however, advises against making network folders trusted, because people who should not be able to save files there may do so.
The cleanest solution is to split the database: the tables stay on the server and each computer has its own copy of the front-end, with forms, reports and code, in a local folder that has been made trusted. This is explained in the guide on Access slow on a network.
If the server folder is reached through an IP address, Windows may treat it as outside the internal network. Microsoft says to add it to the Windows Trusted sites or to the Local intranet zone: this is best left to whoever manages the network, because the setting applies to every computer.
No bar, but the buttons do not work
In the Trust Center you can choose not to show the Message Bar. In that case Access disables the content without any warning, and the database simply looks broken.
To bring it back, choose File › Options › Trust Center › Trust Center Settings › Message Bar, select the option that shows it when active content has been blocked, confirm and reopen the database.
What not to do
- Do not enable all macros in the Trust Center: you would remove the protection from every file, dangerous ones included.
- Do not make a whole drive trusted, or a folder shared by everyone: a trusted location should only hold files whose origin you know.
- Do not turn off the antivirus to open a database: if the file is safe, the steps above are enough.
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 the warning comes back on every computer
If every new colleague, every new computer and every update of the program means fixing the Trust Center all over again, the problem is not the warning: it is that the program lives in a file that has to be copied and configured by hand on every workstation.
A web application removes that step: it opens in the browser, with no files to distribute and no security settings to touch. Here is how we turn Access databases into web applications; with the free database check you can see in the meantime what your file contains.
Frequently asked questions
Why does the same database work on one computer and not on another?
Because the warning depends on the computer and on the copy of the file: on one computer the folder is among the trusted locations and on the other it is not, or the copy came from the internet and has the red bar.
Does Enable Content last for good?
Not always: Microsoft warns that you may need to repeat it if the database changes. For a database used every day, the stable solution is a trusted location.
How can you find the folder the database is in?
With the database open, choose the File tab: in the Info section Access shows the full path of the file.
Is enabling the content dangerous?
Only if the database cannot be trusted. By enabling it you tell Access that you trust it: its code can then do anything on the computer that your user account can do.
Is the data safe while the content is disabled?
Yes: in disabled mode you can consult the data. What stays switched off is the code and the operations that change the data automatically.
Sources
- Microsoft: decide whether to trust a database
- Microsoft: macros from the internet are blocked by default in Office
- Microsoft: add, remove or change a trusted location
Official Microsoft pages.