J
J.Alladien
Hello guys,
1.I am currently using this (extremely usefull .I might add) code to
email to a group of people:
Option Explicit
' ****************************************************************
' 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.
DoCmd.SendObject acReport, "Invoice", acFormatRTF, _
" " & ![E-MAIL] & "", , , , , False
.MoveNext
Loop
End With
End If
rstCustomers.Close
End Function
BUT INSTEAD OF ATTACHING A REPORT FROM my DB ,I WOULD LIKE TO ATTACH A PDF
FILE IN LET'S SAY C:/FOLDER/TEST.PDF!
HOW SHOULD I MODIFY THE ABOVE WRITTEN CODE TO DO THIS?
2.EVERYTIME A MAIL GETS SENT TO A PERSON .I GET THE MESSAGE" A PROGRAM IS
TRYING TO SEND A MAIL THROUGH THIS PROGRAM, SEND , DO NOT SEND ETC..." HOW
CAN I DISABLE THIS WARNING,AS IT WOULD BE VERY FRUSTRATING IF YOU HAVE TO DO
THIS EVERY TIME WHEN SENDING TO A BIG GROUP OF PEOPLE!
PLS NOTE I USE OUTLOOK EXPRESS AS MY DEFAULT MAIL!
THANKS IN ADVANCE!
1.I am currently using this (extremely usefull .I might add) code to
email to a group of people:
Option Explicit
' ****************************************************************
' 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.
DoCmd.SendObject acReport, "Invoice", acFormatRTF, _
" " & ![E-MAIL] & "", , , , , False
.MoveNext
Loop
End With
End If
rstCustomers.Close
End Function
BUT INSTEAD OF ATTACHING A REPORT FROM my DB ,I WOULD LIKE TO ATTACH A PDF
FILE IN LET'S SAY C:/FOLDER/TEST.PDF!
HOW SHOULD I MODIFY THE ABOVE WRITTEN CODE TO DO THIS?
2.EVERYTIME A MAIL GETS SENT TO A PERSON .I GET THE MESSAGE" A PROGRAM IS
TRYING TO SEND A MAIL THROUGH THIS PROGRAM, SEND , DO NOT SEND ETC..." HOW
CAN I DISABLE THIS WARNING,AS IT WOULD BE VERY FRUSTRATING IF YOU HAVE TO DO
THIS EVERY TIME WHEN SENDING TO A BIG GROUP OF PEOPLE!
PLS NOTE I USE OUTLOOK EXPRESS AS MY DEFAULT MAIL!
THANKS IN ADVANCE!