?
Solved

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

Posted on 2014-09-10
3
Medium Priority
?
179 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 1500 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 46

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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses
Course of the Month14 days, 21 hours left to enroll

771 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