How to Open the Default Email Client from an MS Access Form
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.

- 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.
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.
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.
Open your Microsoft Access database, right-click the target Form in the navigation pane, and select Design View.
From the Form Design tools ribbon, drag a Command Button onto your form.
Right-click the newly added button, select Build Event, choose Code Builder, and click OK to open the VBA editor.
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
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 a Mailto Link for Browser-Based Email Services
If users rely on browser-based email services like Gmail or Hotmail, standard MAPI calls might fail. Using a web standard mailto link acts as a lightweight, cross-platform workaround.
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. Download the Installer: Visit the official WPS Office website and click the Free Download button.
- 2. Install the Suite: Run the downloaded setup file and follow the quick on-screen instructions to install the software.
- 3. Open Your Files: Launch WPS Office and instantly open and edit your existing Microsoft Office documents.

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.




