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

Code more than One line

Status
Not open for further replies.

msofficebeginner

IS-IT--Management
Oct 11, 2005
10
0
0
DE
If code exists more than single line how to continue the code to 2nd line

Thanks
 
Hello
I have a sql string which exceds one line, it is coming to second line, hwto get this.

example:
strD = " SELECTE STATEMENT......................." _
strD = " FROM ..........." _
strD = " WHERE ............"

is it correct?
 
how are ya msofficebeginner . . .

In help, have a look at the [blue]Line Continuation Character[/blue].

Calvin.gif
See Ya! . . . . . .
 
StrD = "SELECT ... " & _
"FROM ... " & _
"WHERE ... " & _

or

StrD = "SELECT ..."
StrD = StrD & " FROM ... "
StrD = StrD & " WHERE ... "
 
And yet another way:
strD = " SELECTE STATEMENT......................." _
& " FROM ..........." _
& " WHERE ............"


Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top