473,394 Members | 2,031 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

SendObject text in body on 1 line

TTD
Hi when I send mail from Access the body puts al my bodydata on 1 line,
though the string contains carraige returns.

strMailadres = Me.Mailer

strPerson = Me.Responsable
strSubject = "Casenr. " & Me.Casenummer & " : " & Left$(Me.CaseOmschr,
20)
strText = "Casenummer: " & Me.Casenummer & Chr(13) & Chr(13) _
& " Received through:" & Me.OntvangstOmschr & Chr(13) & Chr(13) &
Chr(13) & _
" Deadline is at " & Me.Deadline & " " & Me.DeadlineTijd & " Well solve
it." & Chr(13) & _
"Greetings., " & Me.Person

'Mail verzenden
DoCmd.SendObject , , acFormatTXT, strMailadres, , , strSubject, strText,
True

Any idea how to get carriage returns in the mail?
Nov 12 '05 #1
4 1691
"TTD" <tt*@hotmail.com> wrote in message
news:c8***********@beast.euro.net...
Hi when I send mail from Access the body puts al my bodydata on 1 line,
though the string contains carraige returns.


You need Chr(13) & Chr(10) in that order.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #2
You can use vbCrLf instead of Chr(13) & Chr(10)
"TTD" <tt*@hotmail.com> wrote in message
news:c8***********@beast.euro.net...
Hi when I send mail from Access the body puts al my bodydata on 1 line,
though the string contains carraige returns.

strMailadres = Me.Mailer

strPerson = Me.Responsable
strSubject = "Casenr. " & Me.Casenummer & " : " & Left$(Me.CaseOmschr,
20)
strText = "Casenummer: " & Me.Casenummer & Chr(13) & Chr(13) _
& " Received through:" & Me.OntvangstOmschr & Chr(13) & Chr(13) &
Chr(13) & _
" Deadline is at " & Me.Deadline & " " & Me.DeadlineTijd & " Well solve it." & Chr(13) & _
"Greetings., " & Me.Person

'Mail verzenden
DoCmd.SendObject , , acFormatTXT, strMailadres, , , strSubject, strText, True

Any idea how to get carriage returns in the mail?

Nov 12 '05 #3
You might want to try vbcrlf instead of Chr(13). It works for me.

Michael
Nov 12 '05 #4
TTD
Thanks Rick, Saintor & Lumpierbritches.

the command vbcrlf works fine.
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alfred | last post by:
Hi I am using access 2002 1.0 I want to email a word or html file using the docmd.sendobject The document must be send as a attachment. 2.0 Second I would like to tell the Docmd.Sendobject to...
4
by: Fred | last post by:
I want to insert DHL and FedEx tracking links with the waybill numbers in the body of emails I am sending using sendobject. I am not sending attachments. DHL and FedEx use long links that...
2
by: Lumpierbritches | last post by:
Hello, and thank you in advance for any and all assistance. I'm having a problem. This code worked years ago, what am I doing wrong? Private Sub SendeMail_Click() DoCmd.SendObject...
2
by: Lumpierbritches | last post by:
Hello, and thank you in advance for any and all assistance. I'm having a problem. This code worked years ago, what am I doing wrong? Private Sub SendeMail_Click() DoCmd.SendObject...
2
by: tngster | last post by:
Hi all, I am trying to send an Acess report in the email message body instead of as an attachment. One time, I was able to accomplish that just by using the acFormatHTML as the format. I got a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.