cc'ing an email report

A

Alex

Hi
I am using the following to send a report as a snapshot to TutorEmail.
I want to include a cc to another specified email address. Can someone
advise me of the correct syntax please

thanks

Alex


DoCmd.SendObject acSendReport,
"rptStudentAssignmentFeedbackDetailsCCtoTutor", "Snapshot Format (*.snp)",
TutorEmail, , , subj, msg, True
 
D

Douglas J. Steele

The actual syntax for the SendObject method is:

DoCmd.SendObject [objecttype][, objectname][, outputformat][, to][, cc][,
bcc][, subject][, messagetext][, editmessage][, templatefile]

Put the cc name after the comma after TutorEmail. If you want to send to (or
cc or bcc) multiple addresses, separate them with a semicolon in the string.
 
F

fredg

Hi
I am using the following to send a report as a snapshot to TutorEmail.
I want to include a cc to another specified email address. Can someone
advise me of the correct syntax please

thanks

Alex

DoCmd.SendObject acSendReport,
"rptStudentAssignmentFeedbackDetailsCCtoTutor", "Snapshot Format (*.snp)",
TutorEmail, , , subj, msg, True

One of the arguments in the SendObject method is the cc argument.
Just enter the address as a string
.... ,"(e-mail address removed)", ....
See VBA help.
 

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

Top