B
Billp
Hi,
I have an sql statement
strsql = "INSERT INTO [tblsubProjectNotes] " _
& "(Works_Number" & strOtherFields & ") " _
& "SELECT '" & rst!Works_Number & "' As
NewWorks_Number" _
& strOtherFields & " FROM tblProjectNotes_Input " _
& "WHERE Works_Number='" & rst!Works_Number & "';" _
& "AND rst!Sent_Input = False"
Which returns Chaarcters found after end of SQL statement
What I would like to happen is the fields are inserted into the table where
the string works_Number = the rst!Works_Number only when the checkbox is false
Hence the Where + And , which is not working.
Thank you in advance
Regards
I have an sql statement
strsql = "INSERT INTO [tblsubProjectNotes] " _
& "(Works_Number" & strOtherFields & ") " _
& "SELECT '" & rst!Works_Number & "' As
NewWorks_Number" _
& strOtherFields & " FROM tblProjectNotes_Input " _
& "WHERE Works_Number='" & rst!Works_Number & "';" _
& "AND rst!Sent_Input = False"
Which returns Chaarcters found after end of SQL statement
What I would like to happen is the fields are inserted into the table where
the string works_Number = the rst!Works_Number only when the checkbox is false
Hence the Where + And , which is not working.
Thank you in advance
Regards