Results 1 to 2 of 2
  1. #1
    Mike505 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Aug 2022
    Posts
    19

    Enable All Macros Via Registry or Bat File

    The environment is Access 2021 32 bit, Windows 11 Home.



    If you create a brand new accdb with one form and one button on the form that does nothing and then run the accdb, you'll get a warning that you must enable content. If you do that it runs.
    If you don't do that but go into the Trust Center and Enable All Macros, it runs even though there were no macros.
    So what do you do if the application is running on a machine with only the Access Runtime and there is no way to get to the Trust Center?

    By the way, this happens even if the location of the accdb is in a folder that's setup as a Trusted Location in the Registry.

    I'm wondering if there's a Registry setting or bat file command(s) that could mimic what you can do in the Trust Center.
    I'm fairly certain that this is a recent problem.

    If I look at the Trust Record created by Access when allowing it to enable all content, I can see what it did on my machine but if a try to copy that same data into a Trust Record of the Registry of the Runtime machine, that won't work.

    TIA, Mike

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,979
    I don't fully agree with your comments.
    However, rather than respond to each point in turn, please see my article: Is Location Trusted? (isladogs.co.uk)
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 05-19-2015, 03:03 PM
  2. Capture an “Enable Macros” warning event
    By LindaRuble in forum Programming
    Replies: 1
    Last Post: 03-19-2013, 10:22 AM
  3. Replies: 9
    Last Post: 09-13-2012, 05:18 PM
  4. Force user to enable macros
    By tuna in forum Security
    Replies: 1
    Last Post: 05-09-2010, 04:04 AM
  5. Replies: 2
    Last Post: 06-17-2009, 09:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums