Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a NEWLINE command in access

Status
Not open for further replies.

MsPeppa

Programmer
Jun 27, 2001
19
US
I have a messagebox and what i want to do is create a newline inbetween information. So like my msgbox outputs fields that need to be filled in what i want it to do is have a return inbetween them. i.e


Incident Type
First Name
Last Name


etc... right now I have the code
Msg = Msg & cntl.Name ", " so it has a comma inbetween names. how do I put in a new line between names. Thanks
 
I have had good luck with soemthing like this:
call msgbox("line 1" & chr(10) & chr(13) & "line 2" _
& chr(10) & chr(13) & "line 3", vbokonly)
The underscore character is the line continuation character for vb as you are most likely aware and is shown here to show that you can contine the msgbox arguments on more than 1 line in your text editor Terry (cyberbiker)
 
Try this:

Msgbox Incident Type & vbnewline & First Name & vbnewline & Last Name

Kate
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top