I have recently discovered that this function has stopped working and cant see why. I inserted a control button on a form to send a report to an email recipient. I now just get access error with no number just a message that states cant send this email message.
Private Sub Command149_Click()
On Error GoTo Err_Command149_Click
Dim stDocName As String
stDocName = "Service Report"
DoCmd.SendObject acReport, stDocName
Exit_Command149_Click:
Exit Sub
Err_Command149_Click:
MsgBox Err.Description
Resume Exit_Command149_Click
End Sub