Access Application Initial Installation

Whenever an Access Application using VBA code is installed for the first time, the system blocks execution of VBA (as a precaution against running potentially malicious code) and I get a message asking if I want to "Enable Content".  This could be worded differently depending on the version of Access being used.

Is there a way to prevent this from happening without compromising security?  This is problem when using a "Runtime" version of Access!

Thanks,

Biggles1
Biggles1Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Frank McCourryV.P. Holland Computers, Inc.Commented:
You will always need to run as administrator the first time.  After that it should not be necessary, this is because Access writes files in the System32 folder on first run.  You also must have a printer installed, even if it is fake, otherwise access will not be able to generate reports.
0
Gustav BrockCIOCommented:
You can create a shortcut and run a script that takes care of this. You can find that here:

Deploy and update a Microsoft Access application in a Citrix environment

You may be able to reduce it a bit as you probably need one frontend copy only.

/gustav
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
1.  Put your app in a Trusted Location (Options>>Trust Center >>Trusted Location

2.

avoid bs
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Biggles1Author Commented:
Thanks, I will try this.
0
Biggles1Author Commented:
Can't do that in a with a Runtime version!  I was hoping for some code that would take care of the problem.
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
You can ... create a script file that will write the same information to the Registry that creates Trusted Locations and sets security to Low.
But this assumes on whatever system that the user has permissions to write to the registry.
0
Biggles1Author Commented:
.......which in this particular case I don't.  I'll just have to ask the guys who Manage the Domain Server to give me temporary Administrator privileges, at which point I can edit the Registry myself.

Thanks for the info.  At the very least I learned something.
0
Gustav BrockCIOCommented:
That should not be needed. My script referenced above runs with normal user rights.

/gustav
0
Biggles1Author Commented:
Thanks Gustav,

But in this particular case I don't have even the possibility of creating a BAT file to run this script.  The Desktop itself resides on the Domain Server and is wright protected!!

However there will be other situations where I can use this script,

Biggles1
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
Come to think of it ... the script I use does not require Local Admin Rights either ... as it only writes to Current User..
It just sets the TLs and set Macro (in)Security to Low.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VBA

From novice to tech pro — start learning today.