Trusted Location

Anonymous
2016-11-14T19:29:13+00:00

We have recently updated our MSAccess 2010 runtime to MSAccess 2016 runtime.

We have added all necessary info to our registry, and we are still getting the trusted location message referencing the accde that is located in %appdata%\lp:

Here are the registry settings:

[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Access\Security]

"VBAWarnings"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Access\Security\Trusted Locations]

[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Access\Security\Trusted Locations\Location0]

"Path"="%AppData%\LP\"

[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Access\Security\Trusted Locations\Location2]

"Path"="C:\Program Files (x86)\Microsoft Office\Office16\ACCWIZ\"

"Description"="Access default location: Wizard Databases"

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2016-11-16T01:38:52+00:00

You should be able to use environment variables such as %AppData% if the path string is a REG_EXPAND_SZ type, instead of REG_SZ.  This tells the registry API to expand the variable in the string before returning the value.

Was this answer helpful?

0 comments No comments
Answer accepted by question author
Anonymous
2016-11-15T17:29:49+00:00

I do not believe you can specify a path like:

"Path"="%AppData%\LP\"

rather you have to spell it out completely,

"Path"="C:\Users\gdtest\AppData\Roaming\LP\"

Was this answer helpful?

0 comments No comments

20 additional answers

Sort by: Most helpful
  1. Anonymous
    2016-11-15T19:42:53+00:00

    To double check, I replaced %appdata% with the actual path in the registry key, and still have the problem:

    C:\Users\gdtest\AppData\Roaming\lp\

    Hellllp!!! :-0

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-11-15T19:20:15+00:00

    Like Daniel I'm quite surprised that %apppath% has worked in the past.   Possibly MS has removed it's use in A2016.

    One useful detail is that you do not have to name the Trusted Locations key Location0-9 just because that's what Microsoft has done..   You can call yours whatever you like and Access will simply read all the subkeys under Trusted Locations.

    So, for example, for the Auto FE Updater utility instead of using Location3 I have used "AutoFEUpdater-<name of configuration/INI file>"

    For example

    [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Access\Security\Trusted Locations\AutoFEUpdater-a test Access 2016]

    "Path"="C:\Users\ttoews\AppData\Roaming\_ test Access 2016 FE\"

    "Description"="Created by the Auto FE Updater utility"

    etc.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-11-15T18:56:34+00:00

    I agree with Daniel, I have never seen anything to indicate that using %appdata% was supported.

    Check out this link http://www.accessribbon.de/en/index.php?Trust\_Center:Trusted\_Locations

    Was this answer helpful?

    0 comments No comments