I have built a database that e-mails various reports based on selections made on a form by the user:
If Forms!frm_Reporting1!optREPORT1.Value <> 0 Then
DoCmd.SendObject acReport, "rpt_REPORT1", _
"RichTextFormat(*.rtf)", email@email.com, "", "", Date & _
" Report", _
"Attached is the current Report.", False, ""
End If
I am using Office 2002 and keep getting a warning box from Outlook:
"A program is trying to automatically send e-mailon your behalf. Do you want to allow this? If this is unexpected, it may be a virus and you should choose "No"."
Does anyone know how to disable this warning so it doesn't pop up every time I send the report? There are some days I am sending 45 separate reports and this pops up before every one of them.
If Forms!frm_Reporting1!optREPORT1.Value <> 0 Then
DoCmd.SendObject acReport, "rpt_REPORT1", _
"RichTextFormat(*.rtf)", email@email.com, "", "", Date & _
" Report", _
"Attached is the current Report.", False, ""
End If
I am using Office 2002 and keep getting a warning box from Outlook:
"A program is trying to automatically send e-mailon your behalf. Do you want to allow this? If this is unexpected, it may be a virus and you should choose "No"."
Does anyone know how to disable this warning so it doesn't pop up every time I send the report? There are some days I am sending 45 separate reports and this pops up before every one of them.