W
wpshop
I am trying to customize the email subject line. Below is the code I am
using. I keep receiving a message "Object Required". I would appreciate any
assistance that can be provided. I'm not sure where I am going wrong.
Private Sub Command3_Click()
On Error GoTo Err_Command3_Click
Dim stTo As String
Dim stSubject As String
Dim stText As String
Dim errLopp As String
Dim stAttachment As String
stTo = Nz(Form_frmEncorrChange_RequestMenuSwitchboard.BADSEmail, "")
stSubject = Nz(Report_rptLetterChangeRequest.BADSTrackingNumber, "")
stText = "This is a test of the emergency broadcast system. This is
only a test."
stAttachment = Report_rptLetterChangeRequest
DoCmd.SendObject acSendReport, "rptLetterChangeRequest", "Snapshot
Format", stTo, , , stSubject, stText, -1
Exit Sub
Exit_Command3_Click:
Exit Sub
Err_Command3_Click:
MsgBox Err.Description
Resume Exit_Command3_Click
End Sub
using. I keep receiving a message "Object Required". I would appreciate any
assistance that can be provided. I'm not sure where I am going wrong.
Private Sub Command3_Click()
On Error GoTo Err_Command3_Click
Dim stTo As String
Dim stSubject As String
Dim stText As String
Dim errLopp As String
Dim stAttachment As String
stTo = Nz(Form_frmEncorrChange_RequestMenuSwitchboard.BADSEmail, "")
stSubject = Nz(Report_rptLetterChangeRequest.BADSTrackingNumber, "")
stText = "This is a test of the emergency broadcast system. This is
only a test."
stAttachment = Report_rptLetterChangeRequest
DoCmd.SendObject acSendReport, "rptLetterChangeRequest", "Snapshot
Format", stTo, , , stSubject, stText, -1
Exit Sub
Exit_Command3_Click:
Exit Sub
Err_Command3_Click:
MsgBox Err.Description
Resume Exit_Command3_Click
End Sub