K
khashid via AccessMonster.com
Hi All, I need assistance with the following code am using to send an email
from my form.
rivate Sub Command21_Click()
Dim SendTo As String, MySubject As String, MyMessage As String
SendTo = Me.
MySubject = "New Complain"
MyMessage = Me.Complaint_No & vbCr & Me.Complaint_Type & vbCr & Me.CSR & vbCr
& Me.Customer_Name & vbCr & Me.Card_No & vbCr & Me.Card_Type & vbCr & Me.
CC_Department & vbCr & Me.Complaint
DoCmd.SendObject acSendNoObject, , , SendTo, , , MySubject, MyMessage, True
I need few changes if you can help.
1- Send CC copy
2- MySubject, i want to have the Complain No in the subject in this format
Complain No : [Complain_No]
3- In the MyMessage I want to have the headings with the information because
right now its kindof difficult to figure out the information. I want it this
way
Complain No: [Complain_No]
Customer Name: [Customer_name]
etc....
4- I want the email sent directly as soon the user hits send, right now it
stops for editing.
from my form.
rivate Sub Command21_Click()
Dim SendTo As String, MySubject As String, MyMessage As String
SendTo = Me.
MySubject = "New Complain"
MyMessage = Me.Complaint_No & vbCr & Me.Complaint_Type & vbCr & Me.CSR & vbCr
& Me.Customer_Name & vbCr & Me.Card_No & vbCr & Me.Card_Type & vbCr & Me.
CC_Department & vbCr & Me.Complaint
DoCmd.SendObject acSendNoObject, , , SendTo, , , MySubject, MyMessage, True
I need few changes if you can help.
1- Send CC copy
2- MySubject, i want to have the Complain No in the subject in this format
Complain No : [Complain_No]
3- In the MyMessage I want to have the headings with the information because
right now its kindof difficult to figure out the information. I want it this
way
Complain No: [Complain_No]
Customer Name: [Customer_name]
etc....
4- I want the email sent directly as soon the user hits send, right now it
stops for editing.