Valery
Registered User.
- Local time
- Yesterday, 18:16
- Joined
- Jun 22, 2013
- Messages
- 363
Hi there,
I would like to update the following code I have been using to send emails, from Access 2010 via Outlook 2010, to include my signature block with hard returns in between each line and a few above the signature.
Lets say the signature would be:
My Name
My Company Name
My phone number
My Reference
I tried next to: stMessage = Me![EmailMessage] &"My Name" & Chr(10) & Chr(13) & "My Company Name"
etc.
It does not work... Help! Please! TYTY
Here is the coding :
I would like to update the following code I have been using to send emails, from Access 2010 via Outlook 2010, to include my signature block with hard returns in between each line and a few above the signature.
Lets say the signature would be:
My Name
My Company Name
My phone number
My Reference
I tried next to: stMessage = Me![EmailMessage] &"My Name" & Chr(10) & Chr(13) & "My Company Name"
etc.
It does not work... Help! Please! TYTY
Here is the coding :
Code:
Private Sub SendEmail_Click()
On Error GoTo ProcErr
Dim stLinkCriteria As String
Dim stSubject As String
Dim stMessage As String
stLinkCriteria = Me![Email]
stSubject = Me![EmailSubject]
stMessage = Me![EmailMessage]
DoCmd.SendObject acSendNoObject, , , stLinkCriteria, , , stSubject, stMessage
ProcExit:
Exit Sub
ProcErr:
If Err.Number = 2501 Then
GoTo ProcExit
End If
MsgBox "Error#" & Err.Number & "." & Err.Description & "- SendEmail_Click"
Resume ProcExit
End Sub