03. oktober 2002 - 13:48
Der er
6 kommentarer og 1 løsning
Syntax error in INSERT INTO statement.
Hvad kan tænkes af være galt? Microsoft OLE DB Provider for ODBC Drivers error '80040e14' [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement. SqlVar = "INSERT into relation (produkt_id, cid, Valgt) VALUES " & request("produkt_id") & ",replace(TxtArray(i))" & ",True" CID = tal produkt_id = tal Valgt = ja/nej
Annonceindlæg fra Computerworld
03. oktober 2002 - 13:55
#1
SqlVar = "INSERT into relation (produkt_id, cid, Valgt) VALUES (" & request("produkt_id") & "," & replace(TxtArray(i)) & ",True)" ;)
03. oktober 2002 - 13:57
#2
? Microsoft VBScript runtime error '800a01c2' Wrong number of arguments or invalid property assignment: 'replace' her er hele koden: Dim TxtVar, SqlVar TxtVar = request.form() TxtArray = Split(TxtVar,"&") For i = LBound(TxtArray) To UBound(TxtArray) SqlVar = "INSERT into relation (produkt_id, cid, Valgt) VALUES (" & request("produkt_id") & "," & replace(TxtArray(i)) & ",True)" rs_relation.Execute (SqlVar) Next %>
03. oktober 2002 - 14:01
#3
nåeee, hvad er det der skal replaces? uden replace SqlVar = "INSERT into relation (produkt_id, cid, Valgt) VALUES (" & request("produkt_id") & "," & (TxtArray(i) & ",True)"
03. oktober 2002 - 14:02
#4
SqlVar = "INSERT into relation (produkt_id, cid, Valgt) VALUES (" & request("produkt_id") & "," & TxtArray(i) & ",True)" såån
03. oktober 2002 - 14:03
#5
Fino, men Den opdatere ikke valgt som er UK access checkbox
03. oktober 2002 - 14:27
#6
Der er et eller andet jeg ikke kan gennemskue med de ja/nej bokse. Jeg får det FANME ALDRIG til at virke. PooooooooooooooooooooKKKKKKKKKKEEeeeeeeeerssssssssss :o[
03. oktober 2002 - 16:25
#7
? det sidste må du vist forklare engang til :)
Kurser inden for grundlæggende programmering