By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,510 Members | 1,445 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,510 IT Pros & Developers. It's quick & easy.

New line in VBA

P: n/a
When using VBA to send a report via email, you can Include a message text,
the trouble is formatting this text to look good by, adding in a secret
command to jump to the next line

eg:

DoCmd.SendObject acSendReport, "rptEmailInvoice", "html", Me.CustID, ,
"Jphoto invoice", "Thank you for using jphoto" ***Secret command to make it
go to new paragraph*** " lease find your invoice attached", True

Thanks any help would be greatly appreciated
Justin
Nov 12 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
just wrote:
When using VBA to send a report via email, you can Include a message
text, the trouble is formatting this text to look good by, adding in
a secret command to jump to the next line

eg:

DoCmd.SendObject acSendReport, "rptEmailInvoice", "html", Me.CustID, ,
"Jphoto invoice", "Thank you for using jphoto" ***Secret command to
make it go to new paragraph*** " lease find your invoice attached",
True

Thanks any help would be greatly appreciated
Justin


"Thank you for using jphoto" & Chr(13) & Chr(10) & " lease find your
invoice attached",

:)
--
regards,

Bradley
Nov 12 '05 #2

P: n/a
Bradley is correct.
You can use vbCrLf or vbNewLine as constants for the same thing.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bradley" <br*****@REMOVETHIScomcen.com.au> wrote in message
news:40********@nexus.comcen.com.au...
just wrote:
When using VBA to send a report via email, you can Include a message
text, the trouble is formatting this text to look good by, adding in
a secret command to jump to the next line

eg:

DoCmd.SendObject acSendReport, "rptEmailInvoice", "html", Me.CustID, ,
"Jphoto invoice", "Thank you for using jphoto" ***Secret command to
make it go to new paragraph*** " lease find your invoice attached",
True

Thanks any help would be greatly appreciated
Justin


"Thank you for using jphoto" & Chr(13) & Chr(10) & " lease find your
invoice attached",

:)
--
regards,

Bradley

Nov 12 '05 #3

P: n/a
Thanks

Muchly

Justin
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:40***********************@freenews.iinet.net. au...
Bradley is correct.
You can use vbCrLf or vbNewLine as constants for the same thing.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Bradley" <br*****@REMOVETHIScomcen.com.au> wrote in message
news:40********@nexus.comcen.com.au...
just wrote:
When using VBA to send a report via email, you can Include a message
text, the trouble is formatting this text to look good by, adding in
a secret command to jump to the next line

eg:

DoCmd.SendObject acSendReport, "rptEmailInvoice", "html", Me.CustID, ,
"Jphoto invoice", "Thank you for using jphoto" ***Secret command to
make it go to new paragraph*** " lease find your invoice attached",
True

Thanks any help would be greatly appreciated
Justin


"Thank you for using jphoto" & Chr(13) & Chr(10) & " lease find your
invoice attached",

:)
--
regards,

Bradley


Nov 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.