I have created a control tab on my form to email a report
Here is my code:
Private Sub Email_Click()
On Error GoTo Err_Email_Click
Dim stDocName As String
stDocName = "All Work Orders"
DoCmd.SendObject acSendForm, acReport, , E_Holtman, , , Work_Order, Here_is_a_Work_Order, , stDocName
Exit_Email_Click:
Exit Sub
Err_Email_Click:
MsgBox Err.Description
Resume Exit_Email_Click
End Sub
I am getting error The Form name '3' is misspelled..... I dont know where or why it looking for '3'. My report is called "All Work Orders"
What I am trying to do is Email Snapshot report to EHoltman with Subject Work Order and Message Here is a work Order.
Is there a better format to send reports like invoices than the snapshot. The only options that pop are Excel, Word, Rich text, HTML and Snapshot.
Thanks
Here is my code:
Private Sub Email_Click()
On Error GoTo Err_Email_Click
Dim stDocName As String
stDocName = "All Work Orders"
DoCmd.SendObject acSendForm, acReport, , E_Holtman, , , Work_Order, Here_is_a_Work_Order, , stDocName
Exit_Email_Click:
Exit Sub
Err_Email_Click:
MsgBox Err.Description
Resume Exit_Email_Click
End Sub
I am getting error The Form name '3' is misspelled..... I dont know where or why it looking for '3'. My report is called "All Work Orders"
What I am trying to do is Email Snapshot report to EHoltman with Subject Work Order and Message Here is a work Order.
Is there a better format to send reports like invoices than the snapshot. The only options that pop are Excel, Word, Rich text, HTML and Snapshot.
Thanks