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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top