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 & "'"
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 & "'"