carriage return in a text box

  • Thread starter Thread starter AngiW
  • Start date Start date
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!
 
Try:

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

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

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

Steve
PC Datasheet
 
Back
Top