Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

object type argument blank or invlaid

Status
Not open for further replies.

BigMrC

Technical User
Nov 4, 2003
21
NZ
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 has been working fine for years and now all of a sudden it returns the error

any changes to the system? Upgrade O/S or Access?



Leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top