Here is the code that I have entered and I keep getting an error
message.
Please help
Private Sub Command37_Click()
DoCmd.SendObject acSendReport, "NOTICE OF STANDBY LC AUTORENEWAL (13
month
renewals)", acFormatSNP, [RM Name], [PM Name], "
[email protected]",
Center
of Excellence", "The attached document is highly time sensitive." _
& vbNewLine _
& "" _
& vbNewLine _
& "If you experience issues with opening the attached
email
please download Microsoft Snapshot Viewer." _
& vbNewLine _
& "Link:
http://support.microsoft.com/default.aspx?scid=kb;en-us;175274" _
& vbNewLine _
& "" _
& vbNewLine _
& "Please Print and Fax Completed Copy to (###) ###-####
Attn: Group" _
& vbNewLine _
& "" _
& vbNewLine _
& "Thank you."
End Sub
:
Ooops.
don't need the setfocus if you eliminate the ".Text" in the command.
So:
DoCmd.SendObject acSendReport, "My Report", acFormatRTF, [cboEmail],
, ,
"Weekly Report", "Here is the report you asked for", 0
Damon
Here is one way. It relies on a combobox with the email addresses
listed
and a command button. Look up SendObject in help. There are a
number
of
different formats, the best of which is snapshot because it doesn't
alter
your report's appearance.
Private Sub cmdSend_Click()
Me.cboEmail.SetFocus
DoCmd.SendObject acSendReport, "My Report", acFormatRTF,
[cboEmail].Text,
, , "Weekly Report", "Here is the report you asked for", 0
End Sub
"Professional_in_need_of help"
message
I have a form and a report. I want to send the report to a person
name
that
I have on the form. How can I get the database to use that name in
the
text
box to send the report for that certain record.