Send & Receive Issues

How to Open the Default Email Client from an MS Access Form

Adam DavisAdam Davis Nov 4, 2026 870 views

Question details

The user wants to trigger and open a new, editable email message in their default mail client directly from a Microsoft Access form.

How to Open the Default Email Client from an MS Access Form
Product
Microsoft Access
Device & OS
not provided
Scenario
Initiating an email communication workflow using data or triggers directly from a database form interface.
Observed behavior
While standard VBA methods can successfully launch desktop clients like Outlook, they often fail to populate browser-based clients like Gmail or Hotmail properly.
Before you start

Verify that your computer has a default email client properly configured in the Windows settings, as Access VBA methods rely on local application handlers to construct the message.

Solution 1Recommended

Use DoCmd.SendObject in VBA for Desktop Mail Clients

This is the native and most reliable method to create an editable email message when using a local desktop email client like Microsoft Outlook.

The DoCmd.SendObject method utilizes the system's MAPI (Messaging Application Programming Interface). Setting the EditMessage parameter to True ensures the email pops up on the screen for the user to review and edit before sending.

1
Access Form Design View

Open your Microsoft Access database, right-click the target Form in the navigation pane, and select Design View.

2
Add a Command Button

From the Form Design tools ribbon, drag a Command Button onto your form.

3
Open the VBA Editor

Right-click the newly added button, select Build Event, choose Code Builder, and click OK to open the VBA editor.

4
Insert the VBA Code

Inside the button's Click event, enter the following code: DoCmd.SendObject ObjectType:=acSendNoObject, To:="user@example.com", Subject:="Your Subject", MessageText:="Your Message Body", EditMessage:=True

5
Test the Code

Save your VBA code, switch the form back to Form View, and click the button to verify that Outlook (or your default desktop client) opens a new draft.

Use DoCmd.SendObject in VBA for Desktop Mail Clients
Editing Before Sending: The crucial part of this code is EditMessage:=True. If you change this to False, Access will attempt to send the email in the background automatically.
Free Microsoft Office alternative

Need a Lightweight Office Suite? Discover WPS Office

While Microsoft Access provides powerful database tools, its VBA requirements can be complex. If you need a free, lightweight, and user-friendly suite for your daily document processing, spreadsheets, and presentations, WPS Office is an excellent alternative to Microsoft Office. It offers seamless compatibility without the heavy subscription fees.

  1. 1. Download the Installer: Visit the official WPS Office website and click the Free Download button.
  2. 2. Install the Suite: Run the downloaded setup file and follow the quick on-screen instructions to install the software.
  3. 3. Open Your Files: Launch WPS Office and instantly open and edit your existing Microsoft Office documents.
Fully compatible with Microsoft Excel, Word, and PowerPoint formats (.xlsx, .docx, .pptx).Lightweight installation package that ensures fast performance even on older computers.Familiar tabbed user interface guarantees a zero-learning-curve transition from MS Office.Powerful free built-in PDF tools to view, edit, and convert documents effortlessly.
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't DoCmd.SendObject work with Gmail in my browser?

DoCmd.SendObject relies on the Windows MAPI (Messaging Application Programming Interface), which is engineered for local desktop clients like Outlook. Browser-based email services do not natively intercept these specific MAPI calls, requiring workarounds like Application.FollowHyperlink with a mailto link.

Can I format the email body as HTML using SendObject?

Unfortunately, DoCmd.SendObject only supports plain text formatting. If your workflow requires HTML formatted emails, you will need to bypass SendObject and use Outlook Automation by creating an Outlook.Application object within your VBA code.

How do I send the email automatically without editing it first?

To bypass the editing window and send the email directly in the background, set the EditMessage parameter in your DoCmd.SendObject code to False instead of True.