G
Guest
Below is some old code I am using that works to e-mail reports (Access) but I
get the security pop-up prior to each e-mail. The code runs a series of
reports in Access based on different criteria (primarily different job
numbers). It e-mails a report then moves to the next report, e-mails it and
so on. I would like to get it to run through the reports without the
security pop-up. I have looked at the reference to this snippet:
objMailItem.Save
Set objSafeMail = CreateObject("Redemption.SafeMailItem")
objSafeMail.Item = objMailItem
objSafeMail.Send
but I don't know how to apply it to the DoCmd.sendObject in the code
provided. I have tryied several different things to no avail.
here's the portion of code that e-mails the reports:
strDocName = "LaborRePort"
DoCmd.SendObject acSendReport, strDocName, acFormatSNP, strTo, , ,
strJobNo + " Report for Last Week"
DoEvents
RS.MoveNext
Loop
Thanks in advance for any help.
Marc
get the security pop-up prior to each e-mail. The code runs a series of
reports in Access based on different criteria (primarily different job
numbers). It e-mails a report then moves to the next report, e-mails it and
so on. I would like to get it to run through the reports without the
security pop-up. I have looked at the reference to this snippet:
objMailItem.Save
Set objSafeMail = CreateObject("Redemption.SafeMailItem")
objSafeMail.Item = objMailItem
objSafeMail.Send
but I don't know how to apply it to the DoCmd.sendObject in the code
provided. I have tryied several different things to no avail.
here's the portion of code that e-mails the reports:
strDocName = "LaborRePort"
DoCmd.SendObject acSendReport, strDocName, acFormatSNP, strTo, , ,
strJobNo + " Report for Last Week"
DoEvents
RS.MoveNext
Loop
Thanks in advance for any help.
Marc