返回或設(shè)置 MsoAutomationSecurity 常量,表示以程序方式打開文件時(shí) Microsoft Access 使用的安全模式??勺x寫。
expression.AutomationSecurity
expression 必需。返回 Application 對象的表達(dá)式。
MsoAutomationSecurity 可以是下列 MsoAutomationSecurity 常量之一: |
msoAutomationSecurityByUI 使用“安全”對話框(“工具”菜單的“宏”子菜單)中指定的安全設(shè)置。應(yīng)用程序啟動時(shí) msoAutomationSecurityByUI 為默認(rèn)值。 |
msoAutomationSecurityForceDisable Access 將不打開任何包含宏、Visual Basic for Applications 代碼、包含 ActiveX 控件的窗體、包含 ActiveX 控件的報(bào)表、更新查詢、數(shù)據(jù)定義查詢、傳遞查詢或操作查詢的數(shù)據(jù)庫。不會向用戶顯示任何安全消息。 |
msoAutomationSecurityLow 啟用所有宏。 |