F
Foster Purdy via AccessMonster.com
I am currently using SendObject to generate an email in Groupwise and it
works fine. I am now trying to add multiple recepients in the To and CC
sections but am running into difficulty.
Here is the code:
DoCmd.SendObject acSendNoObject, , , Forms!frm_appraisal_emp_info_entry!
AssignedPC, "Training", "Compliance", _ strSubject, strMsg, True
From what I have read I need to use semi colons to separate additional
recepients:
DoCmd.SendObject acSendNoObject, , , Forms!frm_appraisal_emp_info_entry!
AssignedPC; "Deputy Chief"; "AA_Deputy Chief, "Training", "Compliance", _
strSubject, strMsg, True
However that gives me the following error:
Compile Error: Expected end of statement
Am I heading in the right direction or should I be using another method?
works fine. I am now trying to add multiple recepients in the To and CC
sections but am running into difficulty.
Here is the code:
DoCmd.SendObject acSendNoObject, , , Forms!frm_appraisal_emp_info_entry!
AssignedPC, "Training", "Compliance", _ strSubject, strMsg, True
From what I have read I need to use semi colons to separate additional
recepients:
DoCmd.SendObject acSendNoObject, , , Forms!frm_appraisal_emp_info_entry!
AssignedPC; "Deputy Chief"; "AA_Deputy Chief, "Training", "Compliance", _
strSubject, strMsg, True
However that gives me the following error:
Compile Error: Expected end of statement
Am I heading in the right direction or should I be using another method?