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

paragraph key in memo field

P: n/a
I am trying to use a VBA sub to concatenate some text to the end of a
memo field on a form. The text needs to include some formatting - in
particular a new paragraph. Using the enter key just closes the " of
the VB code and startes a new line in the sub. I have tried using
chr$(12) as per Ascii but this just produces a black rectangular
character. Any ideas?
Thanks.
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
bi**@piperb.freeserve.co.uk (Bill) wrote in
news:aa*************************@posting.google.co m:
I am trying to use a VBA sub to concatenate some text to the
end of a memo field on a form. The text needs to include some
formatting - in particular a new paragraph. Using the enter
key just closes the " of the VB code and startes a new line in
the sub. I have tried using chr$(12) as per Ascii but this
just produces a black rectangular character. Any ideas?
Thanks.

Use & Chr(13) & Chr(10). You can also use the symbolic constants
vbNewLine or vbCrLf if using code.

txtMemo = txtMemo & vbNewline & strNewText

Bob
Nov 12 '05 #2

P: n/a
Thanks Bob
Your suggestions worked fine - another satisfied customer
Cheers
Bill

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.