A family of Microsoft relational database management systems designed for ease of use.
Hi,
The answer above is right that it goes through the registry; here are the exact keys, since the Runtime has no Trust Center screen.
A trusted location is a per-user registry key under Access's security settings (16.0 for Access 2016, 2019, 2021, 2024 and Microsoft 365, Runtime included):
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Access\Security\Trusted Locations\MyApp
Path REG_SZ C:\MyApp\ (the folder that holds the database)
AllowSubfolders REG_DWORD 1 (optional)
Description REG_SZ My application (optional)
The subkey name (MyApp here) only has to be unique. Your installer (Inno Setup, the Package Solution wizard of older versions, a script) can write it when it copies the files; a .reg file or a one-line command works too:
reg add "HKCU\Software\Microsoft\Office\16.0\Access\Security\Trusted Locations\MyApp" /v Path /t REG_SZ /d "C:\MyApp" /f
Points that often trip people up:
- It's per user (HKCU). Write it for each user who runs the application, for example from a logon script, or in a domain through Group Policy (the Access Trusted Locations settings in the Office administrative templates).
- A network folder (\server\share) is ignored unless network locations are allowed: in the same Trusted Locations key, the DWORD AllowNetworkLocations = 1.
- Put the front end in a local folder that users can write to: Access needs to create its lock file next to the database, and users usually can't write under Program Files.
The Runtime page I wrote covers this and the other first-launch issues (no startup form, missing references, unhandled errors closing the app): https://auscult.nbit-tech.fr/en/free-access-runtime.html?utm_source=msqa&utm_medium=forum (disclosure: I make Auscult, the linked site).