How to cout a newline in a MsgBox?

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

HI


I been trying to cout a newline for a msgbox for access so
the message won't come out all in one line. Is it
possible to cout a newline, such as in C++ the \n or endl?

THank you
 
Try this:

MsgBox "This is the first line." & chr(13) & chr(10) & "This is the second
line."

hth,
 
Juan M. Afan de Ribera said:
You could use

MsgBox "First line" & vbCrLf & "Second line"

as well

:-)

For that matter, you don't need the LF, so you could just write

MsgBox "First line" & vbCr & "Second line"
 
Back
Top