ACC2000: How to Force a New Line in a MsgBox MessageID: Q209791
|
If you want to force a new line in a message box, you can include either:
NOTICE: This is an Important Message!and, you wanted the message to be displayed as
NOTICE:you would enter the message as a string expression as in either of the following examples.
This is an Important Message!
MsgBox "NOTICE:" & vbCrLf & "This is an Important Message!"
MsgBox "NOTICE:" & Chr(10) & Chr(13) & "This is an Important Message!"
You can also use this technique to provide multiple lines in a text box on
a form.For more information about character codes, click Microsoft Access Help on the
Help menu, type "Chr()" in the Office Assistant or the Answer Wizard,
and then click Search to view the topics returned.
Additional query words: multiline
Keywords : kbusage kbdta McrArg
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: May 13, 1999