The docmd.SendObject functionality is great in that it crosses all email clients but you can only "attach" one document to the email.
I have 2 reports and a table that get converted to PDF & excel formats and the resultant three documents need to be attached to an email to be sent out.
As a result I have code that does this for me if the user has an outlook mail client... unfortunately some of the users that use my app, use Lotus Notes as their mail client. I know absolutely ZERO
confused
about this client and need help creating code that is similar to he following outlook code:
' #### Outlook code ####
'........................................................................................................................
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.To = ""
.CC = ""
.BCC = ""
.Subject = msgSubject
.Body = msgMessage
.Attachments.Add (myPath & "ImportData.xlsx")
.Attachments.Add (myPath & "Operational PDA.pdf")
If myFlag = True Then
.Attachments.Add (myPath & "Bottler PDA.pdf")
End If
.display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
Please help because I am now at the stage of :banghead:
I have 2 reports and a table that get converted to PDF & excel formats and the resultant three documents need to be attached to an email to be sent out.
As a result I have code that does this for me if the user has an outlook mail client... unfortunately some of the users that use my app, use Lotus Notes as their mail client. I know absolutely ZERO


' #### Outlook code ####
'........................................................................................................................
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
With OutMail
.To = ""
.CC = ""
.BCC = ""
.Subject = msgSubject
.Body = msgMessage
.Attachments.Add (myPath & "ImportData.xlsx")
.Attachments.Add (myPath & "Operational PDA.pdf")
If myFlag = True Then
.Attachments.Add (myPath & "Bottler PDA.pdf")
End If
.display
End With
On Error GoTo 0
Set OutMail = Nothing
Set OutApp = Nothing
Please help because I am now at the stage of :banghead: