Splitting code to span two lines

D

DubboPete

Hi all,

How does one break code up to wrap to more than one line, so that it
can be read more easily?

tia

DubboPete
 
R

Rick Brandt

DubboPete said:
Hi all,

How does one break code up to wrap to more than one line, so that it
can be read more easily?


In Access VBA the underscore is the line continuation character.

EX:

Dim strSQL as String

strSQL = "SELECT * " & _
"FROM TableName " & _
"WHERE SomeField = SomeValue"
 
Top