Automatically run an Access Macro when the Database opens using AutoExec

Macros can be setup in Access to help streamline your tasks. Typically after saving a macro you would link it to a button or attach it to a form. This post will teach you how to execute automatically a macro when a user opens up the database. Lets say I typically run a few custom reports the first thing after opening the database. So first I will create a macro that opens the reports I want each time the database is opened.

Access Open ReportFill out the details of the report in the arguments.

Access report arguments

The last thing I do after tasking the macro is to save the macro as “AutoExec”. When a macro is saved as “AutoExec” it will trigger an event to run the macro after the database is opened.

AutoExec macro name for Access

Make sure you do not include spaces while naming it “AutoExec”.





About Steve Chase

I want to help you work in your business, so you can work on your business. I want to help you achieve your goals and help you have a successful small business journey. I understand that keeping up with the latest technology and cloud based computer trends can be difficult, when you’re running your day to day business. But, it is crucial that you keep up with the technology and best understand your options, in order to thrive in this new era of online business. I can help you discover the right software and tools for your business, train your team on how to use them, and mentor you to best serve and delight your customers. My certifications include: QuickBooks ProAdvisor, Microsoft Office Specialist Master, and OntraPort Certified Consultant. Please contact me on my new website at
This entry was posted in Access and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s