AutomationSecurity Property
Returns or sets an MsoAutomationSecurity constant that represents the security mode that Microsoft Access uses when it is programmatically opening files. Read/write.
expression.AutomationSecurity
expression Required. An expression that returns an Application object.
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 that contains macros, Visual Basic for Applications code, a form that contains an ActiveX control, a report that contains an ActiveX control, update queries, data-definition queries, pass-through queries, or action queries. No security messages are shown to the user. |
msoAutomationSecurityLow Enables all macros. |