There is plenty of code out there that provides examples of this.
Do a google search for "access XXXX faxing"
or try:
or Direct from MS:
Option Explicit
Public strInvoiceWhere As String
' ****************************************************************
' This function will walk through the Customers table and fax the
' Invoice report, which is filtered by the CustomerID field using
' MS Fax through the MS Access SendObject.
' This function assumes the Invoice report has the default
' printer set to MS Fax and the MS Fax driver is installed
' correctly.
' ****************************************************************
Function FaxInvoices()
Dim dbsNorthwind As DATABASE
Dim rstCustomers As Recordset
Set dbsNorthwind = CurrentDb()
Set _
rstCustomers = dbsNorthwind.OpenRecordset("Customers",dbOpenDynaset)
If MsgBox("Do you want to fax invoices" & Chr(13) & _
"to all customers using Microsoft Fax?", 4) = 6 Then
With rstCustomers
Do Until .EOF
' Create the Invoice report Filter used by the Report_Open
' event.
strInvoiceWhere = "[CustomerID] = '" & ![CustomerID] & "'"
DoCmd.SendObject acReport,"Invoice",acFormatRTF, _
"[fax: " & ![fax] & "]", , , , , False
.MoveNext
Loop
End With
End If
rstCustomers.Close
End Function
hope this helps,
nishan