Article ID: 209948 - View products that this article applies to.
This article was previously published under Q209948
This article shows you how to use Automation to create and send a Microsoft Outlook message in Microsoft Access 2000.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. NOTE: The following code may not work properly if you have installed the Outlook E-mail Security Update. For additional information about this update, please see one of the following articles in the Microsoft Knowledge Base, depending on which version of Outlook you have:
(https://support.microsoft.com/kb/262631/EN-US/ )OL2000: Information About the Outlook E-mail Security Update
262617You can use the SendObject method to send a MAPI mail message programmatically in Microsoft Access. However, the SendObject method does not give you access to complete mail functionality, such as the ability to attach an external file or set message importance. The example that follows uses Automation to create and send a mail message that you can use to take advantage of many features in Microsoft Outlook that are not available with the SendObject method.
(https://support.microsoft.com/kb/262617/EN-US/ )OL98: Information About the Outlook E-mail Security Update
There are six main steps to sending a Microsoft Outlook mail message by using Automation, as follows:
For more information about using Automation in Microsoft Access, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type "Automation" in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
(https://support.microsoft.com/kb/209963/EN-US/ )ACC2000: How to Use Automation to Add Appointments to Microsoft Outlook
(https://support.microsoft.com/kb/209955/EN-US/ )ACC2000: How to Use Automation to Create a New Contact Item in Microsoft Outlook
Article ID: 209948 - Last Review: March 29, 2007 - Revision: 3.3