I'm trying to attach a report to an email - it can be any report on screen, the user hits F12 key and the report is attached. The following code has been working fine for years and now all of a sudden it returns the error 2487 "The object type argument for the action or method is blank or invalid"
code on hitting F12 key:
Private Sub f12()
On Error GoTo err_f12
DoCmd.SendObject acSendReport, , acFormatRTF
Exit_f12:
Exit Sub
err_f12:
Resume Exit_f12
End Sub
code on hitting F12 key:
Private Sub f12()
On Error GoTo err_f12
DoCmd.SendObject acSendReport, , acFormatRTF
Exit_f12:
Exit Sub
err_f12:
Resume Exit_f12
End Sub