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-15T20:32:53+00:00

    Darn, you mentioned that registry key in your very first posting.   Sorry about that.

    Then I have no idea why it won't work for you in the runtime.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-11-15T20:19:25+00:00

    It looks like you might have to add the following registry entry.  Try it and see if it works.   I do not recall the ramifications of this.  It would appear it will affect all other Access database files executed on that system so it may be a bit of a security hole.  

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

    "VBAWarnings"=dword:00000001

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-11-15T20:08:43+00:00

    When I think about your original screen shot that's a different screen than I'm used to.  I'm used to seeing a one line entry just below the Access ribbon stating "SECURITY WARNING: Some active content has been disabled. Click for more deails.   And a command button to "Enable Content".

    So I'm thinking this is a different type of message with a different solution.  Or maybe this is how the runtime works although I kind of doubt that.

    Let me poke about a bit on Google.

    Was this answer helpful?

    0 comments No comments