CRLF in TextBox ControlSource Expression

G

Guest

Without using VBA, can a textbox's controlsource expression contain a CRLF
that forces multiple lines to be displayed in the textbox? If so, how?

For example, the following controlsource expression produces two graphical
rectangles between [InvNum] and "Page 1 of 2" instead of physically producing
the desired two lines of text in the textbox:

=[InvNum] & Chr(10) & Chr(13) & "Page 1 of 2")
 
R

Rick Brandt

Jay said:
Without using VBA, can a textbox's controlsource expression contain a
CRLF that forces multiple lines to be displayed in the textbox? If
so, how?

For example, the following controlsource expression produces two
graphical rectangles between [InvNum] and "Page 1 of 2" instead of
physically producing the desired two lines of text in the textbox:

=[InvNum] & Chr(10) & Chr(13) & "Page 1 of 2")

Chr(13) must come first.
 
G

Guest

="Bingo!" & chr(13) & chr(10) & "Thanks a bunch, Rick" & chr(13) & chr(10) &
"Jay"
---

Rick Brandt said:
Jay said:
Without using VBA, can a textbox's controlsource expression contain a
CRLF that forces multiple lines to be displayed in the textbox? If
so, how?

For example, the following controlsource expression produces two
graphical rectangles between [InvNum] and "Page 1 of 2" instead of
physically producing the desired two lines of text in the textbox:

=[InvNum] & Chr(10) & Chr(13) & "Page 1 of 2")

Chr(13) must come first.
 

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