Results 1 to 6 of 6
  1. #1
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568

    Turn of security warning in Access

    Hi Guys,

    i am using macro which is running when access is starting.

    Problem is that i have to enable macres (security warning) to make my macros runnable.

    I am using windows server 2012 R2 Standard.
    So i have shared folder where i have Access FE linked to Postgresql BE.

    User have to copy the Access FE to his local computer and run it.


    And user have to enable security warnings - macro is not running properly on start up:

    Click image for larger version. 

Name:	Screenshot_15.jpg 
Views:	16 
Size:	92.9 KB 
ID:	34911

    How did you solve this problem at your users?

    please help,
    Jacek

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    the macros need enabled for each user ON THEIR PC:
    File, options, trust center, trust center settings, macro settings, ENABLE ALL MACROS

  3. #3
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    thank you ranman256.

    But i do not want to do it manually.
    I want to have code for this.

    Best,
    Jacek

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Can't be done by code, period. If it could be done by code there would be no security. Purpose is to prevent malicious code hacking system.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    isladogs's Avatar
    isladogs is offline Access MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,204
    Sorry to disagree but it can be done.
    The security warning occurs because neither the database not the location are trusted.
    If you distribute your app using an installer package as an EXE file, the installation routine can add the registry settings needed to make this trusted.
    This means the security banner will never be seen and macros/VBA code can run from the first time it is run.

    As for macro settings in the trust centre, these are also stored in the registry so the above should still apply.
    It's never been a problem in my experience (500+ workstations)

    Obviously you should inform your clients that the installer will modify the registry and explain why.

    I have done this for many years with all my distributed apps and it works perfectly.
    I use Sam Logic Visual Installer but other installer packages are available such as Sage Pro or Inno (free)
    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!

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Okay, as executable not accdb file. Got it.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 05-15-2016, 10:27 AM
  2. Replies: 8
    Last Post: 01-20-2015, 01:08 AM
  3. Turn off the dang compatibility warning
    By Jamesiv1 in forum Access
    Replies: 3
    Last Post: 06-07-2014, 02:11 AM
  4. MS Access triggering Outlook Security warning
    By Amiga1200 in forum Programming
    Replies: 5
    Last Post: 05-22-2014, 11:24 PM
  5. Replies: 3
    Last Post: 12-06-2010, 04:06 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