How to cout a newline in a MsgBox?

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
 
H

HERNAN CASTRO

in the message add vbnewline
EX:
msgbox ("hi"& vbnewline & "how are you")
hernan
 
C

Cheryl Fischer

Try this:

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

hth,
 
D

Dirk Goldgar

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"
 

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