Solved

? Windows 7, Access2010, how can I pre-authorize or pre-enable MS access MDBs with macros ?

Posted on 2014-09-10
3
174 Views
Last Modified: 2014-10-20
We have a Windows 7 environment with Server 2008 active directory.

I have an MS access application with front ends (FEs) and back ends (BEs).
We replace one of the backend  MDBs each month to acquire new data for the Front End.

I've recently changed the front-end to use an AUTOEXEC macro that fires some VBA code to Dynamically re-link the BE.
that way, we can use Back End MDB names like CASEnumbers_2014_08  and the front end will dynamically determine the most recent Back end MDB and start using it.

The problem I face is that the AUTOEXEC stops and goes to single-step mode and MS ACCESS 2010 puts up a warning message requesting that the user "enable" the macro content.

Is there a way using GPOs or other means to pre-enable the macro.
I'd also like to get rid of a nuisance "run" window that pops up when the MS access is fired up.

thanks
Phil
0
Comment
Question by:philkryder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 40316747
You can add Trusted Locations in several ways. Modifying the registry is usually the best way, but note that must be done with a user account with sufficient permissions, and it must be done BEFORE the application runs - in other words, you could not include code to do this in a database that is NOT in a Trusted Location (since the code you added would not run, obviously).

See this article for several ways to achieve this: http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/A_10805-Overcome-the-Trust-Center-Nuisance.html
0
 
LVL 45

Expert Comment

by:aikimark
ID: 40316808
Those settings are saved in the registry.  You would need to tweak the registry by some means.
0
 
LVL 85
ID: 40391763
So what was the reason for the B grade? The answer is correct, and you asked for no followup advice ...
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question