rick roberts
10-15-2008, 02:39 AM
can anyone tell me whats wrong with this code. im on access 2007 with sp3
Private Sub cmdEmail_Click()
Dim stDocName As String
stDocName = "rptCalculatorFax"
DoCmd.SendObject acReport, stDocName, acFormatTXT, "rick@rrroberts.freeserve.co.uk", , , "Weekly Figures", , False
Exit Sub
End Sub
it's meant to send the report rptCalculatorFax to my email address but i get a runtime error 2587 - cant complete the output operation
Private Sub cmdEmail_Click()
Dim stDocName As String
stDocName = "rptCalculatorFax"
DoCmd.SendObject acReport, stDocName, acFormatTXT, "rick@rrroberts.freeserve.co.uk", , , "Weekly Figures", , False
Exit Sub
End Sub
it's meant to send the report rptCalculatorFax to my email address but i get a runtime error 2587 - cant complete the output operation