Results 1 to 4 of 4
  1. #1
    erickemboi is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Sep 2020
    Posts
    73

    Vba code to remove accde security warning


    I converted my database to accde but whenever I open I get a nagging security warning. I intend to deploy the database to be used by several clients. Is there a function or vba code to remove this warning? The function should be put in database so that the clients will not be faced with this nagging message. Thanks in advance.

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,938
    Catch 22 - code won’t run until warning is accepted

    Solution is to put the accde in a trusted location

    How do you ensure your client does this? You don’t just send them the front end, you send an installer to install the app which would create trusted location and place the app there.

    Trusted locations are set in the registry so you also need to make sure your client has admin rights to modify it for the installer to work.

  3. #3
    Emmanuel is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    272
    Go to the options settings in the database.
    Select trust settings.
    Select trust center settings
    Select macro settings and
    Select enable all macros.

    If issue still persists,
    Select activex settings and
    Select enable all controls

    Each of these actions may require you to restart your database.

    This should fix your issue

  4. #4
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    The warning is related to trusted locations as Ajax stated. Changing the macro and/or activeX settings will allow or prevent certain types of code/controls working but won't prevent the security warning.
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

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

Similar Threads

  1. Running VBA code before security warning
    By santon in forum Security
    Replies: 20
    Last Post: 02-28-2021, 07:04 AM
  2. Replies: 4
    Last Post: 08-14-2017, 11:52 AM
  3. Replies: 8
    Last Post: 01-20-2015, 01:08 AM
  4. security warning
    By wthoffman in forum Access
    Replies: 3
    Last Post: 02-26-2011, 09:22 AM
  5. Security Warning
    By mojo53777 in forum Security
    Replies: 0
    Last Post: 11-16-2007, 06:23 AM

Tags for this Thread

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