Script to open Access database, run macro, and persist Access instance

前端 未结 2 1528
隐瞒了意图╮
隐瞒了意图╮ 2020-12-06 05:55

I would like to have a script to:

  1. Open an Access .accdb file
  2. Run a macro within the database
  3. Leave this open

I can very easily

2条回答
  •  广开言路
    2020-12-06 06:07

    You could also just use a .bat or .cmd file and put this because MSACCESS has a command line switch for running a macro and unless that macro closes the database it will remain open for user control.

    START "" /MAX "PATH\TO\MSACCESS.EXE" "C:\path.accdb" /x myLinker

提交回复
热议问题