Outlook Error Codes

Fix Access Error 2294 When Sending Outlook Email with an Attachment

Aamir Naveed AkramAamir Naveed Akram Nov 13, 2026 869 views

Question details

User needs a reliable way to send a Microsoft Access report as an Outlook email attachment after DoCmd.SendObject fails with error 2294 on some Windows profiles.

Fix Access Error 2294 When Sending Outlook Email with an Attachment
Product
Microsoft Access and Microsoft Outlook
Device & OS
Windows
Scenario
User runs DoCmd.SendObject from VBA or the External Data tab to email an Access report as a PDF, but sending fails only on certain Windows profiles or computers.
Observed behavior
Microsoft Access displays error 2294: "Access can't attach the object; the message was not sent." Removing the attachment lets the email send successfully.
Before you start

Before changing VBA code, verify that the PDF export folder exists and that you can manually attach a file to an Outlook email on the affected profile. Also confirm Outlook and Access are running with the same architecture (32-bit or 64-bit).

Solution 1Recommended

Use Outlook automation to export the report and attach it

Recommended when DoCmd.SendObject returns error 2294 because it gives you direct control over file creation and the Outlook attachment.

DoCmd.SendObject relies on Simple MAPI and can fail based on the current Windows profile, Outlook security settings, or MAPI configuration. Outlook automation gives you direct control over creating the PDF and attaching it, which avoids the failing SendObject path.

1
Create or open the Access report

In Microsoft Access, open the database and identify the report you want to email.

2
Export the report to PDF with DoCmd.OutputTo

Use DoCmd.OutputTo acOutputReport, "ReportName", acFormatPDF, "C:\Temp\Report.pdf" to create the PDF file in a known folder.

3
Start Outlook automation

In VBA, create an Outlook.Application object and use CreateItem(0) to create a new Outlook MailItem.

4
Attach the exported PDF

Call MailItem.Attachments.Add "C:\Temp\Report.pdf" to add the exported file to the message.

5
Send the message

Set the recipient, subject, and body, then execute MailItem.Send to send the email.

Use Outlook automation to export the report and attach it
Recommended fix: This method creates and attaches the PDF directly through the Outlook object model, so it avoids the error 2294 path.
Free Microsoft Office alternative

Use WPS Office as a Lightweight Alternative for Report Attachments

Access error 2294 is a Microsoft Access/Outlook automation issue. WPS Office cannot patch Access, but it offers a free, lightweight Office alternative for creating, editing, and exporting Word, Excel, PowerPoint, and PDF files with familiar tools and strong Microsoft Office format compatibility.

Create and export PDF reports without Access-only DoCmd.SendObject automation.Opens and saves Microsoft Word, Excel, and PowerPoint formats with high compatibility.Free, lightweight Office suite with a familiar ribbon interface for easy migration.Attach exported PDFs through your existing Outlook or default mail client workflow.
microsoft office alternative - wps office

Frequently Asked Questions

Why does DoCmd.SendObject return error 2294 only for Access but not Word or Excel?

DoCmd.SendObject uses the Access Simple MAPI path, which can be affected by the current Windows profile, Outlook security settings, and MAPI configuration. Word and Excel do not use the same Access DoCmd.SendObject call, so they may still attach files successfully.

How do I send an Access report as a PDF when DoCmd.SendObject fails?

Use Outlook automation: export the report with DoCmd.OutputTo to a known PDF path, create an Outlook MailItem, add the PDF with Attachments.Add, and call Send. This bypasses DoCmd.SendObject.

Will creating a new Windows profile fix Access error 2294?

It often helps if the original profile is corrupted. Create a test Windows profile from Settings > Accounts > Family & other users, then run the same send process. If it works, migrate the affected user to the new profile.

Do Microsoft Access and Outlook need to be the same Office bitness?

Yes. Mismatched 32-bit and 64-bit Office components can cause automation issues. Check File > Account in both apps and ensure they match.

Does WPS Office have an Access or Outlook automation error like 2294?

No. WPS Office does not include Microsoft Access or Outlook automation. You can use WPS Office to create and export PDF reports and then attach them through your normal email client.