View Full Version : msgbox


deekras
02-10-2001, 10:35 PM
i would like my message to look like this:

"You entered a company name, but no account.
Would you like to close form anyway?"

i want it on two lines, with a line break between the sentences.

how do i put in the line break?

MarionD
02-11-2001, 11:00 AM
Try like this:
dim msg1 as string, msg2 as string

msg1="You entered a company name, but no account."
msg2 = "Would you like to close form anyway?"

msgbox msg1 & chr(13) & msg2

(It could be Chr(10) - one is line feed, the other carraige return - I can't remember offhand which is which)

Marion

R. Hicks
02-11-2001, 07:30 PM
Try:

Dim strMsg As String

strMsg="You entered a company name, but no account." & vbCRLF & _
"Would you like to close form anyway?"

HTH
RDH