Opening an MS-Access database from the command line without running any of the startup vba code?

前端 未结 2 1097
长情又很酷
长情又很酷 2020-12-21 05:48

Is there a way to open an MS-Access 2003 database from the command line without running any of the startup vba code or displaying any errors?

I looked at the command

相关标签:
2条回答
  • 2020-12-21 06:14

    Technically, yes there is a way to open an MS-Access 2003 database from the command line without running any of the startup macros, although it does not involve the command line arguments: If you hold down the Shift key while the database opens, it will not run the AutoExec script (and suppresses a few other things). This also assumes the AllowBypassKey property has not been set to False.

    See Ignore startup options

    0 讨论(0)
  • 2020-12-21 06:21

    There is no way for Access to open without running the AutoExec macro associated with that database. The only solution would be to have the AutoExec contain conditional arguments that determined how the database was opened, and not run the commands if the database was shell'd. This would require editing every database to include this logic.

    0 讨论(0)
提交回复
热议问题