问题
I have created a runtime access file, how do I add this file to Trusted Location on my clients PC, where there is No Access Installed.
回答1:
Access 2007:
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Access\Security\Trusted Locations]
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Access\Security\Trusted Locations\Location(n)]
Access 2010:
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations]
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\Location(n)]
Access 2013:
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Access\Security\Trusted Locations]
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Access\Security\Trusted Locations\Location(n)]
Access 2016 & Access 2019 & Office 365:
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Access\Security\Trusted Locations]
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Access\Security\Trusted Locations\Location(n)]
Example of how it will look
"Path"="C:\PathToDB\"
"AllowSubfolders"=dword:00000001
"Description"="The description"
"Date"="01.01.2007 12:00"
If editing Reg is not cup of your Tea, then use AddPath http://www.accessribbon.de/en/?Trust_Center:Trusted_Locations
回答2:
Below are some instructions i found awhile ago which i had saved, which allow you to add trusted locations, allow network locations & include sub folders.
- Use the search in Windows 7 or Windows 8 and type in "regedit.exe";
- Allow Microsoft Windows Registry Editor to make changes to your system;
- Navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Access\Security\Trusted Locations;
- Add a DWORD by right clicking the Trusted Locations directory, selecting New > DWORD (32-bit) Value [or 64 bit QWORD as required];
- Change the name of the DWORD to "AllowNetworkLocations";
- Right click and modify the DWORD using "1" as the value;
- Now add a new KEY to the Trusted Locations directory by right clicking the directory and selecting New > Key (You can rename this to something meaningful);
- Right click the new Key and select New > Expandable String Value (for runtime 2013, just String Value for earlier version);
- Change the name of this file to "Path" and then right-click and modify... the Value Data to the path or network name required (ie "Z:\" or "\servername" );
- To include sub directories as trusted locations, add a DWORD by right clicking the new key, selecting New > DWORD (32-bit) Value [or 64 bit QWORD as required];
- Change the name of this DWORD to "AllowSubfolders" and right click and modify... the DWORD using "1" as the value;
回答3:
It is much easier to just copy your Access file to a folder that is already trusted by any user.
One example is %LocalAppData%
which works even in a Citrix environment.
Create a folder here named you or your company and a subfolder named your application. Copy you database file to this, and provide a shortcut for the users.
回答4:
If the trusted location is on a network location then you need to add:
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Access\Security\Trusted Locations] "AllowNetworkLocations"=dword:00000001
来源:https://stackoverflow.com/questions/31509299/adding-trusted-location-to-access-run-time