/ Forside / Teknologi / Udvikling / ASP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
ASP
#NavnPoint
smorch 9259
Harlekin 1866
molokyle 1040
Steffanst.. 758
gandalf 657
smilly 564
gibson 560
cumano 530
MouseKeep.. 480
10  Random 410
insert problemer
Fra : Christian M. Nielsen


Dato : 13-06-03 16:24

Denne kode

Dim oConn

Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open Session("ADMIN")

strSQL = "INSERT INTO tblArticle (ArticleListOrder) VALUES (" & intOp & ")
WHERE ArticleID = " & intArticleID & " ; "
oConn.Execute(strSQL)

giver følgende fejl (linie 84 er *** oConn.Execute(strSQL) ***)

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Missing semicolon (;) at end of
SQL statement.
/1950/www/admin/article.asp, line 84


Hvad går der galt ? (det er en access 2000 db)

--

Mvh / Regards
-=< Christian >=-
What capital has 164 letters in its name? See my web page to find out.
http://www.cmnielsen.dk ICQ: 25308942
" If something's hard to do, then it's not worth doing. Homer J. Simpson"




 
 
Christian M. Nielsen (13-06-2003)
Kommentar
Fra : Christian M. Nielsen


Dato : 13-06-03 16:28

en response.write strSQL giver dette resultat:


INSERT INTO tblArticle (ArticleListOrder) VALUES (3) WHERE ArticleID =
337 ;


--

Mvh / Regards
-=< Christian >=-
What capital has 164 letters in its name? See my web page to find out.
http://www.cmnielsen.dk ICQ: 25308942
" If something's hard to do, then it's not worth doing. Homer J. Simpson"



Peter Lykkegaard (13-06-2003)
Kommentar
Fra : Peter Lykkegaard


Dato : 13-06-03 18:58


"Christian M. Nielsen" <look_for_it@my.webpage> wrote in message
news:bccqai$g5i$1@sunsite.dk...

> Error Type:
> Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
> [Microsoft][ODBC Microsoft Access Driver] Missing semicolon (;) at end of
> SQL statement.
> /1950/www/admin/article.asp, line 84
>
Drop semikolon helt...

mvh/Peter Lykkegaard



Christian M. Nielsen (13-06-2003)
Kommentar
Fra : Christian M. Nielsen


Dato : 13-06-03 19:08


"Peter Lykkegaard" <polonline@hot.mail.com> wrote in message
news:lgoGa.953$842.238@news.get2net.dk...

> Drop semikolon helt...

Det giver ingen forskel

Stadig denne fejlmeddelelse

[Microsoft][ODBC Microsoft Access Driver] Missing semicolon (;) at end of
SQL statement.

--

Mvh / Regards
-=< Christian >=-
What capital has 164 letters in its name? See my web page to find out.
http://www.cmnielsen.dk ICQ: 25308942
" If something's hard to do, then it's not worth doing. Homer J. Simpson"



Søg
Reklame
Statistik
Spørgsmål : 177552
Tips : 31968
Nyheder : 719565
Indlæg : 6408849
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste