how do I create a new line in a text box?

racemadnss

Registered User.
Local time
Today, 12:08
Joined
May 18, 2004
Messages
58
Im trying to create a label to be printed on a dymo, and Im taking all the info I need and putting it into 1 text box, but the chr(13) isnt working, it just prints out a box. It works fine in a Popup MsgBox but why doesnt it work for a text box?


This is my Code:
Code:
Me.KeymapLocation = "KeyMap: " & Me.keyMap & chr(13) & _
                                                 Me.AreaofTown

Thanks
 
Your code should include a linefeed after the carriage return. Either:
Code:
Me.KeymapLocation = "KeyMap: " _
    & Me.keyMap & chr(13) & chr(10) & Me.AreaofTown
...or
Code:
Me.KeymapLocation = "KeyMap: " _
    & Me.keyMap & vbCrLf & Me.AreaofTown
 

Users who are viewing this thread

Back
Top Bottom