/ Published in: Visual Basic
To test this procedure, type the following line in the Debug window, and then press ENTER.
SendMessage True, "C:\My Documents\Customers.txt"
Note that a new message is displayed in Microsoft Outlook with an attachment.
To send the message without displaying it in Microsoft Outlook, call the procedure with a False value for the first argument:
SendMessage False, "C:\My Documents\Customers.txt"
To send the message without specifying an attachment, omit the second argument when calling the procedure.
SendMessage True
REFERENCES
For more information about using Automation in Microsoft Access, search the Help Index for Automation, or ask the Microsoft Access 97 Office Assistant.
For more information about using Automation to control Microsoft Outlook, please see the following articles in the Microsoft Knowledge Base:
160502 ACC: Using Automation to Add Appointments to Microsoft Outlook
161012 VBA: How to Create a New Contact Item in Outlook with Automation
SendMessage True, "C:\My Documents\Customers.txt"
Note that a new message is displayed in Microsoft Outlook with an attachment.
To send the message without displaying it in Microsoft Outlook, call the procedure with a False value for the first argument:
SendMessage False, "C:\My Documents\Customers.txt"
To send the message without specifying an attachment, omit the second argument when calling the procedure.
SendMessage True
REFERENCES
For more information about using Automation in Microsoft Access, search the Help Index for Automation, or ask the Microsoft Access 97 Office Assistant.
For more information about using Automation to control Microsoft Outlook, please see the following articles in the Microsoft Knowledge Base:
160502 ACC: Using Automation to Add Appointments to Microsoft Outlook
161012 VBA: How to Create a New Contact Item in Outlook with Automation