Barry Edmund Wright wrote:
Hi,
I have two reports that I want to attach to the same email:
rptBugReport
rptBugLog
I can sent the one using:
DoCmd.SendObject acOutputReport, "rptBugReport", acFormatSNP
How can I add the second?
I've tried:
DoCmd.SendObject acOutputReport, "rptBugReport" & "rptBugLog",
acFormatSNP
Thanks
Barry
You cannot do this with SendObject unless you embed both reports as
subreports inside of a single "container" report.
You could use automation of a messaging library like CDO or Outlook and then
have as many attachments as you want. Example code found at link below.
http://www.mvps.org/access/modules/mdl0019.htm
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com