System.Data.SqlClient.SqlException: problem!

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

Guest

The line "Target = '" & Target & "', " & _ must be "Target = '" & Target &
"' " & _
So, without the ,
 
G

Guest

Thx Edward..
Where can i really learn how to use these strings..
i'm alway having problems with it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top