Splitting code to span two lines

  • Thread starter Thread starter DubboPete
  • Start date Start date
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
 
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"
 
Back
Top