email without attachment

G

Guest

I have a button that sends a report as an attachment, however, I would like to send the email without the attachment. Also I notice that the outlook signature that usually works does not appear. Here is my code

Private Sub Command84_Click()
On Error GoTo Err_Command84_Click

Dim stDocName As String

stDocName = "western"
DoCmd.SendObject acReport, stDocName, acFormatRTF, Forms!WebBrowseWeb!blue!Emailto, Cc, Bcc, Forms!WebBrowseWeb!blue!Text46, "Thanks for taking the time to talk with me about our services. If you have any questions, or if I can be of any further assistance, please do not hesitate to call. Thank You."


Exit_Command84_Click:
Exit Sub

Err_Command84_Click:
MsgBox Err.Description
Resume Exit_Command84_Click

End Sub
 
A

Arvin Meyer

Try:

DoCmd.SendObject acSendNoObject, , , Forms!WebBrowseWeb!blue!Emailto,
Cc, Bcc, Forms!WebBrowseWeb!blue!Text46, "Thanks for taking the time to talk
with me about our services. If you have any questions, or if I can be of
any further assistance, please do not hesitate to call.
Thank You."
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access


Jim Mac said:
I have a button that sends a report as an attachment, however, I would
like to send the email without the attachment. Also I notice that the
outlook signature that usually works does not appear. Here is my code
Private Sub Command84_Click()
On Error GoTo Err_Command84_Click

Dim stDocName As String

stDocName = "western"
DoCmd.SendObject acReport, stDocName, acFormatRTF,
Forms!WebBrowseWeb!blue!Emailto, Cc, Bcc, Forms!WebBrowseWeb!blue!Text46,
"Thanks for taking the time to talk with me about our services. If you have
any questions, or if I can be of any further assistance, please do not
hesitate to call.
Thank You."
 

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

Similar Threads

Select printer 1
Help!! 3
Specific report 2
Date defined report 1
Sending Email in txt format 10
E-mail Code 2
EMail Report --NOT AS ATTACHMENT 21
How send a report and also pdf files located in c: drive? 5

Top