06. november 2002 - 11:36
Der er
6 kommentarer og 1 løsning
Syntax error (missing operator) in query expression
Jeg er blevet blind... venligst hjælp med at finde fejlen: SQLstmt = "UPDATE DISTINCTROW faner SET " SQLstmt = SQLstmt & "title_1 = '" & title_1 & "'," SQLstmt = SQLstmt & "descr_1 = '" & descr_1 & "'," SQLstmt = SQLstmt & "title_2 = '" & title_2 & "'," SQLstmt = SQLstmt & "descr_2 = '" & descr_2 & "'," SQLstmt = SQLstmt & "title_3 = '" & title_3 & "'," SQLstmt = SQLstmt & "descr_3 = '" & descr_3 & "'," SQLstmt = SQLstmt & "title_4 = '" & title_4 & "'," SQLstmt = SQLstmt & "descr_4 = '" & descr_4 & "'," SQLstmt = SQLstmt & "title_5 = '" & title_5 & "'," SQLstmt = SQLstmt & "descr_5 = '" & descr_5 & "' " SQLstmt = SQLstmt & "WHERE ID=" & request("id") SQLstmt = SQLstmt & " VALUES ('" & request.form("title_1") & "'," SQLstmt = SQLstmt & "'" & request.form("descr_1") & "'," SQLstmt = SQLstmt & "'" & request.form("title_2") & "'," SQLstmt = SQLstmt & "'" & request.form("descr_2") & "'," SQLstmt = SQLstmt & "'" & request.form("title_3") & "'," SQLstmt = SQLstmt & "'" & request.form("descr_3") & "'," SQLstmt = SQLstmt & "'" & request.form("title_4") & "'," SQLstmt = SQLstmt & "'" & request.form("descr_4") & "'," SQLstmt = SQLstmt & "'" & request.form("title_5") & "'," SQLstmt = SQLstmt & "'" & request.form("descr_5") & "')"
Annonceindlæg tema
Offentlig digitalisering
Fra effektivisering til digital suverænitet. Hvordan skaber det offentlige en digital fremtid med AI, sikkerhed og kontrol i centrum?
06. november 2002 - 11:38
#1
where skall vara EFTER values
06. november 2002 - 11:39
#2
SQLstmt = "UPDATE DISTINCTROW faner SET " SQLstmt = SQLstmt & "title_1 = '" & title_1 & "'," SQLstmt = SQLstmt & "descr_1 = '" & descr_1 & "'," SQLstmt = SQLstmt & "title_2 = '" & title_2 & "'," SQLstmt = SQLstmt & "descr_2 = '" & descr_2 & "'," SQLstmt = SQLstmt & "title_3 = '" & title_3 & "'," SQLstmt = SQLstmt & "descr_3 = '" & descr_3 & "'," SQLstmt = SQLstmt & "title_4 = '" & title_4 & "'," SQLstmt = SQLstmt & "descr_4 = '" & descr_4 & "'," SQLstmt = SQLstmt & "title_5 = '" & title_5 & "'," SQLstmt = SQLstmt & "descr_5 = '" & descr_5 & "')" SQLstmt = SQLstmt & " VALUES ('" & request.form("title_1") & "'," SQLstmt = SQLstmt & "'" & request.form("descr_1") & "'," SQLstmt = SQLstmt & "'" & request.form("title_2") & "'," SQLstmt = SQLstmt & "'" & request.form("descr_2") & "'," SQLstmt = SQLstmt & "'" & request.form("title_3") & "'," SQLstmt = SQLstmt & "'" & request.form("descr_3") & "'," SQLstmt = SQLstmt & "'" & request.form("title_4") & "'," SQLstmt = SQLstmt & "'" & request.form("descr_4") & "'," SQLstmt = SQLstmt & "'" & request.form("title_5") & "'," SQLstmt = SQLstmt & "'" & request.form("descr_5") & "')" SQLstmt = SQLstmt & " WHERE ID=" & request("id") virker nok mer korrekt =)
06. november 2002 - 11:40
#3
asch, jag læste ikke allt du kan ikke gæra en "update" med "values" "values" er ner du gør en insert...
06. november 2002 - 11:40
#4
SQLstmt = "UPDATE DISTINCTROW faner SET " SQLstmt = SQLstmt & "title_1 = '" & request.form("title_1") & "'," SQLstmt = SQLstmt & "descr_1 = '" & request.form("descr_2") & "'," SQLstmt = SQLstmt & "title_2 = '" & request.form("title_2") & "'," SQLstmt = SQLstmt & "descr_2 = '" & request.form("descr_2") & "'," SQLstmt = SQLstmt & "title_3 = '" & request.form("title_3") & "'," SQLstmt = SQLstmt & "descr_3 = '" & request.form("descr_3") & "'," SQLstmt = SQLstmt & "title_4 = '" & request.form("title_4") & "'," SQLstmt = SQLstmt & "descr_4 = '" & request.form("descr_4") & "'," SQLstmt = SQLstmt & "title_5 = '" & request.form("title_5") & "'," SQLstmt = SQLstmt & "descr_5 = '" & request.form("descr_5") & "' " SQLstmt = SQLstmt & "WHERE ID=" & request("id")
06. november 2002 - 11:42
#5
SQLstmt = "UPDATE DISTINCTROW faner SET " SQLstmt = SQLstmt & "title_1 = '" & request.form("title_1") & "'," SQLstmt = SQLstmt & "descr_1 = '" & request.form("descr_1") & "'," SQLstmt = SQLstmt & "title_2 = '" & request.form("title_2") & "'," . . . . . . SQLstmt = SQLstmt & "descr_5 = '" & request.form("descr_5") & "'" SQLstmt = SQLstmt & " WHERE ID=" & request("id")
06. november 2002 - 11:42
#6
agh.... vilken misbruger..... =)
06. november 2002 - 11:51
#7
den virker nu - tak
Kurser inden for grundlæggende programmering