Dear All,
Please help.
I have been trying to test if a field in my report is EMAIL and then if so send that report to the referenced email address.
But I get the error:
Fields
CusConMeth ( used for the contact type i.e. EMAIL )
CusConDet ( used for the storing of the contact type detail, i.e. the actual email address )
Report name: LdParkingSPDAdoptLett
Below is the code I am using on the On Load Event
Please help
Thanks.
Thank you,
Kind regards
Triacona
Please help.
I have been trying to test if a field in my report is EMAIL and then if so send that report to the referenced email address.
But I get the error:
Run-time error 2585: said:This action can't be carried out while processing a form or report event.
Fields
CusConMeth ( used for the contact type i.e. EMAIL )
CusConDet ( used for the storing of the contact type detail, i.e. the actual email address )
Report name: LdParkingSPDAdoptLett
Below is the code I am using on the On Load Event
Code:
Private Sub Report_Load()
If CusConMeth = "EMAIL" Then
DoCmd.SendObject acSendReport, "LdParkingSPDAdoptLett", acFormatPDF, CustConDet, , , "TEST"
End If
End Sub
Thanks.
Thank you,
Kind regards
Triacona