Schedule MS Access Macros: Run at Specific Times

Victoria Jul 07, 2026

Ever found yourself wishing you could automate repetitive tasks in Microsoft Access, such as running a macro at a specific time? While Access doesn't have a built-in scheduler, you can achieve this by using a combination of VBA (Visual Basic for Applications) and Windows Task Scheduler. Let's delve into how you can set up your Access macro to run at a specific time.

MS Access - Stored Procedure as Recordset for Forms
MS Access - Stored Procedure as Recordset for Forms

Before we dive into the process, ensure you have a good understanding of VBA and macros in Access. If you're new to these concepts, consider familiarizing yourself with them first to make the most of this guide.

How to Use Macros in Microsoft Access 2013 - Examples of Macros and Using Autoexec
How to Use Macros in Microsoft Access 2013 - Examples of Macros and Using Autoexec

Setting Up the Macro

Your first step is to create or identify the macro you want to run at a specific time. This macro should contain all the actions you want to automate. For instance, it could update records, run reports, or perform calculations.

an image of a calendar on the computer screen with time and date options for each month
an image of a calendar on the computer screen with time and date options for each month

To create a new macro, press Alt + F11 to open the VBA editor, then click Insert and select Module. In the module, type your macro actions using VBA syntax. Once done, save the module and close the VBA editor.

Creating the Batch File

How to Automate Tasks in MS Access with Macros
How to Automate Tasks in MS Access with Macros

Windows Task Scheduler can't directly run Access macros. Instead, it can run batch files (.bat), which can in turn launch Access and run your macro. So, our next step is to create a batch file that will launch Access and run your macro.

Open Notepad, and type the following lines, replacing "your_database.accdb" with the path to your Access database file and "your_macro_name" with the name of your macro:

@echo off
"C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE" "C:\path\to\your_database.accdb" /x "your_macro_name"

Save this file with a .bat extension, for example, "run_macro.bat".

MS Access - A Cost Effective, Powerful Business Tool
MS Access - A Cost Effective, Powerful Business Tool

Setting Up the Task in Windows Task Scheduler

Now that you have your batch file, it's time to set up the task in Windows Task Scheduler. Open Task Scheduler by searching for it in your Start menu. Click on Create Basic Task in the right-hand panel.

Give your task a name, such as "Run Access Macro", and click Next. On the next screen, select Daily (or the frequency that suits your needs) and click Next. Choose the start time for your task and click Next again.

a screenshot of an excel spreadsheet with the access - templates button highlighted
a screenshot of an excel spreadsheet with the access - templates button highlighted

Configuring the Task Action

On the "Action" screen, select Start a program and click Next. In the "Program/script" field, click Browse and select the batch file you created earlier. Click Next, then Finish to create the task.

Macro To Open Query in MS Access 2007
Macro To Open Query in MS Access 2007
Ms Access database student rank for same mark
Ms Access database student rank for same mark
Audit Trail using Data Macros
Audit Trail using Data Macros
Tutorial: How to create an Advanced Form in MS ACCESS
Tutorial: How to create an Advanced Form in MS ACCESS
5 Cool Microsoft Excel Macros for Sorting Data
5 Cool Microsoft Excel Macros for Sorting Data
Save Macros Required For Repetitive Tasks In Excel Workbooks
Save Macros Required For Repetitive Tasks In Excel Workbooks
MS Access
MS Access
How to open MS access Database in SPSS using Syntax file command
How to open MS access Database in SPSS using Syntax file command
How to Change the MS Access Autonumber
How to Change the MS Access Autonumber
3 Crosstab Query Techniques in MS Access
3 Crosstab Query Techniques in MS Access
How to Create an Append Query in MS Access
How to Create an Append Query in MS Access
# 16 MS Project 2016 ● Recurring Tasks ● Project Meetings
# 16 MS Project 2016 ● Recurring Tasks ● Project Meetings
How to Record Macro in MS Word
How to Record Macro in MS Word
an info sheet describing the differences between max and maxiis
an info sheet describing the differences between max and maxiis
Data Recovery, File Recovery and Email Recovery Software by DataNumen
Data Recovery, File Recovery and Email Recovery Software by DataNumen
Getting Started With Microsoft Project 2010
Getting Started With Microsoft Project 2010
How to save time with Excel macros & VBA
How to save time with Excel macros & VBA
How to Enable Macros in Excel Without Risks
How to Enable Macros in Excel Without Risks
Complete Your Day Book By Adding Multiple Entries Using Macros in Excel
Complete Your Day Book By Adding Multiple Entries Using Macros in Excel
How to Create and Record Macros in Excel?
How to Create and Record Macros in Excel?

Your task is now set up. You can view and manage your tasks in the Task Scheduler Library. If you need to make changes, right-click on your task and select Properties.

Testing the Task

Before you rely on the task to run your macro at a specific time, it's a good idea to test it. You can do this by double-clicking on your task in the Task Scheduler Library. The task should run immediately, launching Access and executing your macro.

If everything works as expected, your task will now run your Access macro at the specified time every day (or on your chosen schedule).

Remember, this method requires Access to be installed on the computer where the task is running. If Access is not available, you'll need to use an alternative method or ensure Access is installed on the target machine.

Now that you've set up your Access macro to run at a specific time, you can sit back and let automation do its work. This frees up your time to focus on more complex tasks, improving your productivity and efficiency.