object type argument blank or invalid (1 Viewer)

BigMr.C

Registered User.
Local time
Tomorrow, 03:37
Joined
Mar 1, 2005
Messages
14
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
 

Users who are viewing this thread

Top Bottom