How to skip Autoexec macro when opening MSAccess from MSAccess?

后端 未结 5 637
心在旅途
心在旅途 2020-12-10 06:15

So I have an MSAccess MDB that needs to open other MDB\'s and run a bunch of code that will compare two Access MDB\'s to find code differences,query diffs,etc. The goal bein

5条回答
  •  旧巷少年郎
    2020-12-10 06:44

    Another option: do a rename of the autoexec macro in your VB code.

    OpenCurrentDatabase ("Your database")

    DoCmd.Rename "Autoexec", acMacro, "tmp_Autoexec"

    CloseCurrentDatabase

    After you've done your action do a rename back to autoexec again ... et voila....

提交回复
热议问题