Application.AutomationSecurity property (Access)

Returns or sets an MsoAutomationSecurity constant that represents the security mode that Microsoft Access uses when it is programmatically opening files. Read/write.

Syntax

expression.AutomationSecurity

expression A variable that represents an Application object.

Remarks

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.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.