。次の手順を実行します 。 。 。
Create an AutoExec macro
If you have already created a macro that contains the actions that you want to occur when the database starts, just rename the macro AutoExec, and it will run the next time that you open the database. Otherwise, follow these steps to create a macro:
On the Create tab, in the Other group, click Macro. If this command is unavailable, click the arrow beneath either the Module or the Class Module button, and then click Macro.
In the Macro Builder, in the first empty Action cell, select the action that you want to perform. If applicable, under Action Arguments, type the appropriate values in the argument boxes.
If you cannot find the action you want, on the Design tab, in the Show/Hide group, make sure Show All Actions is selected. This expands the list of actions that you can use, but the list will include some actions that will only run if the database is granted trusted status. For more information, see the articles Decide whether to trust a database or How database objects behave when trusted and untrusted.
Repeat step 2 for each additional action you want to occur.
Click Save, and in the Save As dialog box, type AutoExec.
Click OK and then close the Macro Builder. The new macro will run the next time that you open the database.
すべてを起動するには、Windowsタスクスケジューラを使用する必要があります。すべての詳細については、下のリンクを参照してください。
https://www.sevenforums.com/tutorials/11949-elevated-program-shortcut-without-uac-prompt-create.html
あなたはこのプロセスに関する追加の質問がある場合はポストバック。
たとえば、1時間ごとにチェックを入れ、時が真夜中と等しいかどうかを確認してから、コードを実行するタイマーを試すことができます。 – obl
どうすればいいですか? – Ace