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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

module lines

Status
Not open for further replies.

dmb1

Technical User
Sep 19, 2000
55
GB
I know this is probably a really easy one but:

In a module how can you go onto a new line when the line you are writing on is full but still need to continue with that line of code!

Thanks

DMB!
 
Depends on whether you are breaking a string or not
basically use a space then an underline character hit return
add a space on the second line and continue the code.
enclose strings on both lines and use an ampersand to concatenate
or continue the string as one

MsgBox "This is a " _
& "test of 2 line code"

DoCmd.OpenForm _
"form1"

PaulF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top