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: Newest
  1. Anonymous
    2016-11-15T18:24:58+00:00

    Thank you Daniel, however I am not finding this to be the case...

    1. Before writing in for help I tried using the proper full path to no avail.
    2. We have many successful installations with the %appdata% line in the registry for other runtime versions (2010 and 2013).  Might there be something different about 2016?
    3. On these currently unsuccessful machines that I am writing about, up until now (for several years) we have been running Access Runtime 2007 and have had success using these exact registry settings, with the exception of the path reference to Microsoft Office:

    [HKEY_CURRENT_USER\Software\Microsoft\Office*16.0* was 

    [HKEY_CURRENT_USER\Software\Microsoft\Office*12.0*

    Hellllp! :-)

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-11-15T17:48:37+00:00

    I just tested and I was right.  Using the wizards, it won't let you enter such a value.

    Even if you override the registry value manually, Access does not recognize the path until you enter the proper full path instead of %appdata%, then everything behaves as it should.

    Was this answer helpful?

    0 comments No comments