Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Turn Security Warning Off in VBA? 1

Status
Not open for further replies.

101287

MIS
Apr 8, 2006
189
0
0
US
When I exeucte the following function, when I opened Ms Access the Security Warning pop up requiring from me to select "Open Cancel or More Information". Is there anyway that I can supress that security pop-up?

Public Function ExecuteAccessMacro()

Dim AC As Access.Application
Set AC = New Access.Application
AC.OpenCurrentDatabase ("d:\data\romanla\My Documents\acWkSpace\LRTactical DashBoard_be.mdb")

With AC
.Visible = False
.DoCmd.RunMacro "mcrUploadMilestones"
.Quit
End With

End Function
 
Is this code being run from another instance of Access (ie Access from Access, or Access from VB/VBA in another office app)?

Also, which version of Access?

John
 
Yes, the code is run from another instance of access. The version is 2003.

Luis
 
You may try this:
AC.AutomationSecurity = msoAutomationSecurityLow
AC.OpenCurrentDatabase ...

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thank you PHV, you always come to my rescue. But that's a good thing.

Luis
 
It would be nice if MS was consistent and Outlook's OLE interface supported something like that...
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top