carriage return in a text box

A

AngiW

I have an unbound text box that displays whatever I want through code,
depending on the situation. Is there a way to add a carriage return so that I
can break it up
over two lines rather than two text boxes? I've tried vbCR but all I get is a
box where the return should be. I've also set the Enter Key Behavior to Add
new line...nothing works. Thanks!
 
P

PC Datasheet

Try:

Me!MyTextbox = <String1> & VbCrLf & <String2>

Where <String1> And <String2> Are strings inside double quotes or string
variables that have been dimmed.
 
P

PC Datasheet

FYI ---

You can add a second VbCrLf and you will get a space between the two lines.

Steve
PC Datasheet
 

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