Sending email to multiple recepients from Groupwise

  • Thread starter Thread starter Foster Purdy via AccessMonster.com
  • Start date Start date
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?
 
Assuming "To:" is supposed to be AssignedPC, "Deputy Chief" and "AA_Deputy
Chief, "CC:" is supposed to be "Training" and "Bcc:" is supposed to be
"Compliance", you should have:

DoCmd.SendObject acSendNoObject, , , _
Forms!frm_appraisal_emp_info_entry!AssignedPC & _
";Deputy Chief;AA_Deputy Chief, "Training", "Compliance", _
strSubject, strMsg, True
 
Hi Douglas,

I used your code and got a Compile Error: Syntax Error message. I thought it
may have been the double quotes before the semi colon and Deputy Chief but
removing that gave me a Compile Error: Expected Expression.
Assuming "To:" is supposed to be AssignedPC, "Deputy Chief" and "AA_Deputy
Chief, "CC:" is supposed to be "Training" and "Bcc:" is supposed to be
"Compliance", you should have:

DoCmd.SendObject acSendNoObject, , , _
Forms!frm_appraisal_emp_info_entry!AssignedPC & _
";Deputy Chief;AA_Deputy Chief, "Training", "Compliance", _
strSubject, strMsg, True
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
[quoted text clipped - 17 lines]
Am I heading in the right direction or should I be using another method?
 
Sorry, my typo.

There should be a double quote after Deputy Chief, before the comma:

DoCmd.SendObject acSendNoObject, , , _
Forms!frm_appraisal_emp_info_entry!AssignedPC & _
";Deputy Chief;AA_Deputy Chief", "Training", "Compliance", _
strSubject, strMsg, True



--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Foster Purdy via AccessMonster.com said:
Hi Douglas,

I used your code and got a Compile Error: Syntax Error message. I thought
it
may have been the double quotes before the semi colon and Deputy Chief but
removing that gave me a Compile Error: Expected Expression.
Assuming "To:" is supposed to be AssignedPC, "Deputy Chief" and
"AA_Deputy
Chief, "CC:" is supposed to be "Training" and "Bcc:" is supposed to be
"Compliance", you should have:

DoCmd.SendObject acSendNoObject, , , _
Forms!frm_appraisal_emp_info_entry!AssignedPC & _
";Deputy Chief;AA_Deputy Chief, "Training", "Compliance", _
strSubject, strMsg, True
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
[quoted text clipped - 17 lines]
Am I heading in the right direction or should I be using another method?
 
Excellent. Works great. Thanks Douglas.
Sorry, my typo.

There should be a double quote after Deputy Chief, before the comma:

DoCmd.SendObject acSendNoObject, , , _
Forms!frm_appraisal_emp_info_entry!AssignedPC & _
";Deputy Chief;AA_Deputy Chief", "Training", "Compliance", _
strSubject, strMsg, True
Hi Douglas,
[quoted text clipped - 18 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top