msgbox (1 Viewer)

deekras

Registered User.
Local time
Today, 14:35
Joined
Jun 14, 2000
Messages
169
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

Registered User.
Local time
Today, 14:35
Joined
Oct 10, 2000
Messages
421
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

AWF VIP
Local time
Today, 08:35
Joined
Dec 23, 1999
Messages
619
Try:

Dim strMsg As String

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

HTH
RDH
 

Users who are viewing this thread

Top Bottom