Line Continuation

dbalargin

Member
Local time
Today, 08:05
Joined
Dec 31, 2002
Messages
39
I have about 50 variables to insert into a table.
My code looks like: docmd.runsql "INSERT INTO ..."
Problem - I need to continue the line at a variable.
What do I do?
 
dba,

Code:
DoCmd.RunSQL "Insert Into YourTable (FieldA, FieldB, FieldC) " & _
             "Values ('" & Me.FieldA & "', '" & _
                           Me.FieldB & "', '" & _
                           Me.FieldC & "')"

Wayne
 
Are you talking about using this as a line continuation? _
 

Users who are viewing this thread

Back
Top Bottom