email without a report attached help required please

TIDMAN

Registered User.
Local time
Today, 22:57
Joined
Feb 16, 2002
Messages
119
Hi there all i have an A97 db with an email button the pronlem i have is i dont want to send a report with the email i just wanted to populate the send to field and the cc field but the only way i seem to be able to set this up is by attaching a report to it

can this be be set up so that an email can be sent with out attaching anything?

Here is me current code

Private Sub Command7_Click()
On Error GoTo Err_mailrpt_Click

Dim stDocName As String

stDocName = "Do_Not_Open"
DoCmd.SendObject acReport, stDocName, "Rich Text Format", "person1@company.com ", "person2@company.com", , "DRAWINGS FOR APPROVAL ADDED", "Please Complete The Link Then Send To CTC \\servername\PROJECTS\ CTC: Please Click On The Link To Retrieve Approval Drawings."

Exit_mailrpt_Click:
Exit Sub

Err_mailrpt_Click:
MsgBox Err.Description
Resume Exit_mailrpt_Click

End Sub

Thanks in advance for any help.

TIDMAN..... :confused:
 
I use this.....

Code:
On Error Resume Next
    Dim daBody As String
    daBody = ""
    daBody = daBody & "UPC: " & Forms!frmMainData!UPC.Value & vbCrLf
    daBody = daBody & "BCD #: " & BCD_No.Value & vbCrLf
    daBody = daBody & "Description: " & Desc.Value & vbCrLf
    daBody = daBody & "Amount: " & Amount.Value & vbCrLf
    daBody = daBody & "Complete date: " & Date_Completed.Value & vbCrLf
    daBody = daBody & "Due date: " & Due_Date.Value & vbCrLf
    daBody = daBody & "Estimated by: " & Estimator.Value & vbCrLf
    daBody = daBody & "Notes: " & NOTES.Value & vbCrLf
    
    DoCmd.SendObject [COLOR=Red]acSendNoObject[/COLOR], , , Assigned_To.Column(1), , , "A MOD Ready for your Review", daBody
 

Users who are viewing this thread

Back
Top Bottom