Carriage return in memo field

G

Gerry

Can someone tell me how to insert a carriage return into a memo field?

Thanks much!!!
 
G

Gerry

Thank you Karl, I should have been a little more clear. I am programatically
inserting text into the field. I have tried chr(13) and chr(10) but that
doesn't work.
Is there another code that would work?

THank you.
 
F

fredg

Can someone tell me how to insert a carriage return into a memo field?

Thanks much!!!

Under what circumstances?

During keyboard data entry?
1) Ctrl + Enter will add a new line during data entry
or ...
Set the control's Enter Key Behavior property to New Line in Field.
Then just hit the Enter key to add a new line during entry.

Using Code?
Me.MemoField = Me.MemoField + chr(13) & chr(10) & "This is new text."
 
F

fredg

Under what circumstances?

During keyboard data entry?
1) Ctrl + Enter will add a new line during data entry
or ...
Set the control's Enter Key Behavior property to New Line in Field.
Then just hit the Enter key to add a new line during entry.

Using Code?
Me.MemoField = Me.MemoField + chr(13) & chr(10) & "This is new text."

Oops.. That should have been:

Me.MemoField = Me.MemoField & chr(13) & chr(10) & "This is new text."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top