Results 1 to 7 of 7
  1. #1
    Jimruns919 is offline Advanced Beginner
    Windows 10 Access 2019
    Join Date
    Jun 2023
    Location
    Pennsylvania
    Posts
    32

    Access Macro Issue

    I have been creating MS Access Databases for different areas of work and they work perfectly... until I put the database on a network drive which users all have full access to. Then, when they open the database they receive an error that macros are blocked so my VBA does not run.



    I have created about 4 different databases and the same thing happens on all of them. I have the network location listed as a trusted location, I have tried copying the database to the local desktop to test it, I have set all network and subfolders as safe, I have even marked all macros as safe in the options but it just will not work.

    I am sure it is something I am doing but I just cannot figure out what. Any ideas would be GREATLY appreciated as I have databases I want to roll out for testing to users but they cannot open them.

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I have the network location listed as a trusted location
    each user needs to have this set as a trusted location

  3. #3
    Jimruns919 is offline Advanced Beginner
    Windows 10 Access 2019
    Join Date
    Jun 2023
    Location
    Pennsylvania
    Posts
    32
    I am trying to add the mapped network drive and it says it cannot be added for security reasons. I was able to do it and save the database to a network location and create the database and it runs fine on that share, but only for me as an administrator but the drive I created for everyone for these databases to be located in will not allow me to set that even though I have it check to allow network locations. I even tried using the server URL and same error.

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    ,
    but only for me as an administrator but the drive I created for everyone for these databases to be located in will not allow me to set that even though I have it check to allow network locations. I even tried using the server URL and same error.
    You need to go to each users machine, open access, go to trusted locations and set it from there

  5. #5
    Jimruns919 is offline Advanced Beginner
    Windows 10 Access 2019
    Join Date
    Jun 2023
    Location
    Pennsylvania
    Posts
    32
    I actually made a little progress. First, I had to go into INTERNET OPTIONS and then add the network location as a TRUSTED LOCATION.

    Then I went into ACCESS OPTIONS and TRUSTED and was able to add the location, but not as the network drive. I have to add it as the URL.

    Once I did that I was able to open the database but it has an error regarding active content. Once I click on the yellow bar to ENABLE CONTENT it runs so I am further along.

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    Once I click on the yellow bar to ENABLE CONTENT it runs
    that should happen automatically with any user who opens an access file that is not in a trusted location

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Is database split design?

    Use UNC pathing in table links and network drive mapping is not needed. I use a VBA procedure to modify table links before distributing frontend. https://www.accessforums.net/showthread.php?t=37443
    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: 03-26-2021, 10:22 AM
  2. Replies: 1
    Last Post: 06-02-2015, 04:18 PM
  3. Replies: 3
    Last Post: 02-19-2014, 03:14 PM
  4. How to issue a GRANT statement from a macro
    By xfp39024 in forum Access
    Replies: 2
    Last Post: 06-15-2012, 11:48 AM
  5. Replies: 0
    Last Post: 07-13-2010, 07:45 AM

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