Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想每天在某个时间只运行一次 MS Access 功能 - 早上 6 点计算机(Windows 2010)运行一整天。什么是最简单但资源消耗最少的方式。例如。我可以在 MS Access 的 VBA 代码中放置一个循环来做某事(例如 DoEvent),直到早上 6 点,但这可能会减慢计算机的速度。计算机已经忙于其他任务。因此,在 MS Access 中触发模块/功能的方式应尽可能减少 CPU 消耗。请问有谁能帮忙吗?
Windows Task Scheduler to the rescue!!
https://www.howtogeek.com/123393/how-to-automatically-run-programs-and-set-reminders-with-the-windows-task-scheduler/
使用任务调度程序运行应用程序并在命令行上指定宏名称(有关说明,请参见联机帮助)。
...您也可以将宏命名为 AutoExec,它会在每次打开 MS Access 数据库时运行。