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"
 
... and there must be a space before the underscore!

Rob







- Show quoted text -

....and you gentlemen are true scholars!

thanks for your help

Pete
 

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

Back
Top