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-17T18:56:49+00:00

    Yes, the difference is the ones where it doesn't work are on a terminal server.

    However, just to note, these terminal server workstations worked without issue on version 2007.

    No, the full version of Microsoft Office Professional 2007 was not removed from the terminal server before installing 2010 runtime.  However, I did remove the Access registry keys for Access 12.0.

    Also, just to note, the 2007 version was not removed from the NON-Terminal server workstations before installing 2010 runtime, and they do not have the "trust" issue.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-11-16T20:05:59+00:00

    Let me understand the problem. 

    You have some computers on your network that setting the trust directory is not working after installing the Access 2016 runtime, no matter if you use %AppData% or the fully qualified path to the directory.  Thus that means you do have some computers that there is no problems.

    What is the difference between these computers?

    Were some of these computers new computer builds?

    Were some of these computers upgraded computers?

    Was the old Access runtime(s) uninstalled, before installing the new runtime?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-11-16T01:51:10+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.

    Thank you for clearing that up. I changed the key to the REG_EXPAND_SZ key type, but I get the same "trust" error message.

    I also, as previously noted, typed the whole non-abbreviated string to prove that the issue was not the reference to %appdata%, but I appreciated you confirming that appdata will work anyway...

    I hope someone can help!!

    p.s. I hope you are safe in New Zealand!!

    Was this answer helpful?

    0 comments No comments