Hi I am a completley new to VBA so may be well out of my depth but here goes.
I am wanting to send a report as a text file by email to a recipient that has been selected from a combo box on a form, the report is called "prtGroupContactsbyWard"
The command I have used from scouring the internet is:
DoCmd.SendObject acSendReport, "rptGroupContactsbyWard", acFormatTXT, [forms]![frmReportGen]![Combo114], , , "Your Email Contacts", , ,
I get a error that says
Compile error:
Syntax error:
Can someone please help
Thanks
I am wanting to send a report as a text file by email to a recipient that has been selected from a combo box on a form, the report is called "prtGroupContactsbyWard"
The command I have used from scouring the internet is:
DoCmd.SendObject acSendReport, "rptGroupContactsbyWard", acFormatTXT, [forms]![frmReportGen]![Combo114], , , "Your Email Contacts", , ,
I get a error that says
Compile error:
Syntax error:
Can someone please help
Thanks