I am getting this error message when trying to write out this code. It is highlighting the semicolon after the first email address. Here is the code.
Code:Private Sub Command35_Click() DoCmd.SendObject(acSendReport, _ rptDeviceCost, _ acFormatPDF, _ "martin@pecsafety.com"; "Lewis@pecsafety.com"; "Matt@pecsafety.com", _ "Emile@pecsafety.com"; "sean@pecsafety.com", _ , _ "Device Cost Report - Test", _ "This is a test. Please disregard this email for now.", _ True, ) End Sub