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
Solved

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

Posted on 2014-09-10
3
171 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
  • 2
3 Comments
 
LVL 84

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 84
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In-place Upgrading Dirsync to Azure AD Connect
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

840 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