Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing my email message 1

Status
Not open for further replies.

jdwm2310

Technical User
Jul 26, 2001
396
US
Hi Guys,

I would like to know how I can insert paragraphs in my email message:

Private Sub Send_Click()
SendNotesMail "This ticket has been routed by the HR Help Desk", "", Me.Route_To, "Please contact the following employee: " & CallerName & " at : " & Telephone & ", after reviewing the following question: " & RequestedQuestion & " Thank you, " & UserName, True
DoCmd.Close acForm, "HelpDeskCalls", acSaveYes
DoCmd.OpenForm "TicketOption"
End Sub


i want it to look like the body text to look something like this:


The following individual contacted the HR HelpDesk, CallerName and Telephone.

Message Details : RequestedQuestion

Please contact as necessary.

Thank you,
HelpDeskCalls
 
Use vbCrLf between the different elements of your message

emailtext = "The following individual contacted the HR HelpDesk " & callername & telephone & vbCrLf & "Message Details: " & RequestedQuestion & vbCrLf & "Please contact as necessary." & vbCrLf & "Thank you," & vbCrLf & "HelpDeskCalls"

Hope this helps!
 
cyoung,

your posting was extremely helpful, i have one more question: how can I enter spacing between the paragraphs. It now looks like this

The following individual contacted the HR Help Desk: Molina, Ruth at : 383-3226
Message Details: Test
Please contact if necessary.
Thank you,
Administrator

but I want it to look like this:

The following individual contacted the HR Help Desk: Molina, Ruth at : 383-3226

Message Details: Test

Please contact if necessary.

Thank you,
Administrator

One more thing, could I make some words bold?
 
Just add a vbCrLF where you want the line break to appear.

Since you are dealing with text only, there is not a way to make any of the words bold (at least that I am aware of)

Good Luck!
 
cyoung,

thanks for everything!!!!!!!!! it works perfectly [thumbsup2]
 
Is it possible if I can add color to the text?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top