How to Automatically Add a Trusted Location in Microsoft Access
Question details
The user needs a method to automatically register a database folder as a trusted location when Microsoft Access starts.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Deploying ACCDE and runtime database applications that require their installation folder to be trusted so startup code can execute without security blocks.
- Observed behavior
- Microsoft Access blocks active database content and prevents startup code from running because the deployment folder is considered untrusted.
Ensure you have full administrative rights on the deployment machine. Only designate secure, fully controlled folders as trusted locations to prevent the execution of malicious database code.
Configure the Folder through the Microsoft Office Trust Center
Use the built-in Microsoft Access Trust Center to manually register the database deployment folder as a safe location.
This is the standard and safest method for individual users or developers configuring their own workstations. It tells Microsoft Access that any database opened from this specific directory is safe to run.
Launch Microsoft Access, click on the 'File' tab in the top-left corner, and select 'Options' from the bottom of the menu.
In the Access Options dialog box, select 'Trust Center' from the left navigation pane, then click the 'Trust Center Settings' button on the right.
Select 'Trusted Locations' from the left menu and click the 'Add new location' button at the bottom of the window.
Click 'Browse' to locate the folder containing your ACCDE or runtime application. Check the box for 'Subfolders of this location are also trusted' if necessary, then click 'OK' to apply the settings.

Use a Trusted-Location Management Utility
Automate the addition of trusted locations during application deployment using third-party registry utilities like AddPath.
Looking for a Lightweight Alternative for Your Office Needs?
While Microsoft Access handles complex databases, for your everyday document, spreadsheet, and presentation tasks, WPS Office offers a free, lightweight, and highly compatible alternative to the broader Microsoft Office suite. It easily handles standard Office formats within a fast, tabbed interface.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install the Suite: Run the setup file and follow the quick installation prompts to set up WPS Office on your computer.
- 3. Open Your Files Seamlessly: Launch WPS Office and immediately start opening, editing, and saving your existing Microsoft Office documents.

Frequently Asked Questions
Why does Microsoft Access block my database macros and startup code?
Access disables active content from untrusted sources by default to protect your system from potentially malicious VBA code or macros. Moving the database to a Trusted Location tells Access that the file is safe, allowing the code to run seamlessly.
Can I trust network folders for Access databases?
Yes, you can trust network paths, but it requires an extra step. You must first open the Trust Center Settings, go to Trusted Locations, and check the box labeled 'Allow Trusted Locations on my network (not recommended)' before adding the network path.
How do registry keys work for Trusted Locations in Access?
Microsoft Access stores trusted locations in the Windows Registry under the specific Office version's Security hive. Automated deployment utilities work by writing these exact registry keys for the user during the installation process, bypassing the need for manual Trust Center configuration.




