System.Data.SqlClient.SqlException: problem!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anybody body tell me what my error is here its saying :-

System.Data.SqlClient.SqlException: Incorrect syntax near the keyword 'WHERE'.

SQLString = "UPDATE treetable SET " & _
"ParentID = '" & ParentID & "', " & _
"FileCategory = '" & Replace(FileCategory, "'", "''") & "', " & _
"NavigateUrl = '" & Replace(NavigateUrl, "'", "''") & "', " & _
"Target = '" & Target & "', " & _
"WHERE FileCategoryID ='" & FileCategoryID & "'"
 
The line "Target = '" & Target & "', " & _ must be "Target = '" & Target &
"' " & _
So, without the ,
 
Thx Edward..
Where can i really learn how to use these strings..
i'm alway having problems with it!
 
Back
Top