This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /MS Access

How to Create Autoexec Macro MS Access

Updated on:
May 12, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to set up an AutoExec macro that runs automatically in MS Access.

Quick summary

An AutoExec macro in Microsoft Access runs automatically every time a database is opened, making it ideal for automating startup tasks. By naming a macro exactly AutoExec, Access recognizes and executes it without any manual trigger.


Steps

  1. Go to the Create tab in the ribbon.
  2. Click on Macro in the Macros & Code group.
  3. In the macro design window, use the drop-down in the Action column to select the actions you want the macro to perform.
  4. Configure each action's properties as needed.
  5. Click the save icon to proceed.
  6. Name the macro AutoExec — this name is mandatory for it to run automatically — then click OK to save.
  7. Close and reopen the database, then click Run to verify.
  8. The AutoExec macro will now run automatically each time the database opens.

📌 Why this matters

The AutoExec macro in Microsoft Access is a powerful built-in automation feature that eliminates the need for manual startup actions every time a database is opened. By naming a macro AutoExec, Access automatically executes it on launch, enabling teams to enforce consistent startup workflows such as opening forms, running validation checks, or displaying welcome messages. This is especially valuable for database administrators and power users who need to standardize how shared Access databases behave across an organization. Mastering AutoExec macros reduces manual overhead and ensures critical startup logic is never skipped.
Your product deserves an interactive demo
Start free
Similar Articles
MS Access

How to Integrate a Microsoft Excel Database with Excel

Madhav Bhandari
Director of Marketing @ Storylane
MS Access

How to Integrate Google Calendar with an MS Access Database

Madhav Bhandari
Director of Marketing @ Storylane
MS Access

How to Integrate Google Sheets with an MS Access Database

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Buyer Hub
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Events & webinars
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it