PDA

View Full Version : Disable Security Open File



ThaNguyen
01-27-2010, 10:47 AM
Hi all,

I have a macros run from Excel see below

Set AccessApp = GetObject("Y:\Orders.mdb", "Access.Application")
AccessApp.DoCmd.RunMacro "AutoUpdate"

Which is working fine before it would run the "AutoUpdate" and goes on to the next statement. Now it would prompt a Security Warning the you have to click on Open for it to continued.

How do I turn this warning off or have to code continue to go through without click on open.

I think there is some setting in the Reference that might have been missed.

Thank you in advance.

lucas
01-27-2010, 01:47 PM
Set your security settings lower. No one here will help you do this programattically as it is considered hacking.

You could run any dangerous macro with that ability....

ThaNguyen
01-28-2010, 07:27 AM
thanks:hi:

Imdabaum
01-29-2010, 12:58 PM
thanks:hi:

If you are looking for more specific guidance and you are working in Access 2007, click on the "Security Options" button that appears. Then you have a couple options.

Go to trust center and you can add the network place to the trusted sites.

Or you can disable all macro warnings (not recommended by Microsoft) but if your network's security is taken care of, then you should be okay.


http://www.mac-net.com/1159484.page for more info.