AutomationSecurity Property [Access 2003 VBA Language Reference]

MsoAutomationSecurity

MsoAutomationSecurity can be one of these MsoAutomationSecurity constants:
msoAutomationSecurityByUI Uses the security setting specified in the Security dialog box (Tools menu, Macro submenu). msoAutomationSecurityByUI is the default value when the application is started.
msoAutomationSecurityForceDisable Access will not open any database if the macro security level is set to High or Medium in the Security dialog box (Tools menu, Macro submenu). No security messages are shown to the user.

Note  This setting has no effect if the macro security level is set to Low.

msoAutomationSecurityLow Enables all macros.

expression.AutomationSecurity

expression Required. An expression that returns an Application object.

Applies to | Application Object