Select the product you need help with
ACC: How to Fax from Microsoft Access Using SendObject CommandArticle ID: 145787 - View products that this article applies to. This article was previously published under Q145787 Moderate: Requires basic macro, coding, and interoperability skills.
On This PageSUMMARY
This article shows you how to create a macro and a Visual Basic procedure
to fax a report from Microsoft Access. The examples assume that you have
Microsoft Exchange, Microsoft Fax, and a fax modem installed and
functioning.
NOTE: If your fax does not appear to have proper formatting, you may want to change your default email editor to Microsoft Word. This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to your version of the "Building Applications with Microsoft Access" manual. NOTE: This article explains a technique demonstrated in the sample files, RptSampl.exe (for Microsoft Access for Windows 95 version 7.0) and RptSmp97.exe (for Microsoft Access 97). For information about how to obtain these sample files, please see the following articles in the Microsoft Knowledge Base: 145777
(http://support.microsoft.com/kb/145777/EN-US/
)
ACC95: Microsoft Access Sample Reports Available in Download Center
175072
(http://support.microsoft.com/kb/175072/EN-US/
)
ACC97: Microsoft Access 97 Sample Reports Available in Download Center
MORE INFORMATIONNOTE: 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:
262631
(http://support.microsoft.com/kb/262631/EN-US/
)
OL2000: Information About the Outlook E-mail Security Update
262617
The following examples use the sample database Northwind.mdb to show you
how to create a macro and a Visual Basic procedure to fax a report using
Microsoft Fax.
(http://support.microsoft.com/kb/262617/EN-US/
)
OL98: Information About the Outlook E-mail Security Update
NOTE: When you use the SendObject method within Microsoft Access, you must have a messaging application (for example, Microsoft Exchange), that supports the Microsoft Mail Applications Programming Interface or MAPI. NOTE: If you have an electronic mail application that uses the Vendor Independent Mail (VIM) protocol and have installed and set up the dynamic- link library (Mapivim.dll) that converts MAPI mail messages to the VIM protocol, you can send Microsoft Access objects to the VIM mail application. CAUTION: Following the steps in this example will modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and perform these steps on a copy of the database. Creating a MacroThis example uses the SendObject action to fax the Catalog report to a single fax number.
Creating a Visual Basic ProcedureThis example shows you how to fax the Invoice report to each customer in the Customers table.
To change the association for .rtf documents to WordPad, follow these steps:
REFERENCES
For more information about SendObject, search the Help Index for
"SendObject Action."
For more information about OutputTo, search the Help Index for "OutputTo." For more information about FindFirst, search the Help Index for "FindFirst Method." PropertiesArticle ID: 145787 - Last Review: January 19, 2007 - Revision: 3.3
|



Back to the top








