Dec 13, 2005 #1 msofficebeginner IS-IT--Management Joined Oct 11, 2005 Messages 10 Location DE If code exists more than single line how to continue the code to 2nd line Thanks
Dec 13, 2005 #2 alvechurchdata Programmer Joined Nov 8, 2003 Messages 1,737 Location GB Put an underscore at the end of the line: Code: If Err = GI_RECORDLOCKED Or _ Err = GI_TABLELOCKED Or _ Err = GI_USERCONFLICT Then Geoff Franklin http://www.alvechurchdata.co.uk Upvote 0 Downvote
Put an underscore at the end of the line: Code: If Err = GI_RECORDLOCKED Or _ Err = GI_TABLELOCKED Or _ Err = GI_USERCONFLICT Then Geoff Franklin http://www.alvechurchdata.co.uk
Dec 13, 2005 Thread starter #3 msofficebeginner IS-IT--Management Joined Oct 11, 2005 Messages 10 Location DE 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? Upvote 0 Downvote
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?
Dec 13, 2005 #4 TheAceMan1 Programmer Joined Sep 23, 2003 Messages 11,174 Location US how are ya msofficebeginner . . . In help, have a look at the [blue]Line Continuation Character[/blue]. See Ya! . . . . . . Upvote 0 Downvote
how are ya msofficebeginner . . . In help, have a look at the [blue]Line Continuation Character[/blue]. See Ya! . . . . . .
Dec 13, 2005 #5 spizotfl MIS Joined Aug 17, 2005 Messages 345 Location US StrD = "SELECT ... " & _ "FROM ... " & _ "WHERE ... " & _ or StrD = "SELECT ..." StrD = StrD & " FROM ... " StrD = StrD & " WHERE ... " Upvote 0 Downvote
StrD = "SELECT ... " & _ "FROM ... " & _ "WHERE ... " & _ or StrD = "SELECT ..." StrD = StrD & " FROM ... " StrD = StrD & " WHERE ... "
Dec 13, 2005 #6 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR 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 Upvote 0 Downvote
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