How to force user to deal with the Security Warning when starting Access 2007?

后端 未结 6 1171
孤独总比滥情好
孤独总比滥情好 2021-01-21 01:41

When a user start an Access 2007 database that have macros and vba, a security warning is shown. I want the user to deal with this warning, so if the the content is\'t enabled,

6条回答
  •  后悔当初
    2021-01-21 02:24

    Ok, after a while I have the solution. Thanks for the answers who led me the right way.

    This article from Microsoft is very helpful.

    In the AutoExec-macro, I have two lines:

    Line one: Conditions: [CurrentProject].[IsTrusted]=False and then I choose witch Form I want to open and in this case it is the "info about security warning form"

    Line two: Conditions: [CurrentProject].[IsTrusted]=True and now open the "start menu form"

    And that's all!

提交回复
热议问题