----code clip starts-------
<%
'this file is to create an array called players to delete then delete's them from the list
dim playercount
playercount=Request.form("playercount"
dim playerstodelete
playerstoconfirm=Request.form("confirm"
paid="paid"
itstrue="yes"
sql3 = "INSERT INTO Results (deposit_paid) VALUES ('" & paid & "') WHERE ID IN ("& playerstoconfirm &""
accessdb="../../../../ohio"
dim DSNstring
DSNstring= "DBQ=" & server.mappath(accessdb) & ";DRIVER={Microsoft Access Driver (*.mdb)}"
dim objConn
set objConn = Server.CreateObject("ADODB.Connection"
objConn.Connectionstring = DSNstring
objConn.Open
Response.Write "----- there are currently :" & playercount & " in the database" & chr(13)
Response.Write sql3 & chr(13)
if playerstoconfirm <> "" then
Response.Write " ---- SQL confirming players :" & playerstoconfirm & chr(13)
objConn.Execute sql3
end if
objConn.Close
Set objConn = Nothing
%>
----- code clip ends ------
confirm is a set of numbers passed to this asp page from a form
=======here's my output======
----- there are currently :2 in the database
INSERT INTO Results (deposit_paid) VALUES ('paid') WHERE ID IN (1, 2)
---- SQL confirming players :1, 2
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Missing semicolon ( at end of SQL statement.
/confirmindbase.asp, line 30
===== end of output ======
now.. it says to add a semicolon.. but when i do the page won't run at all...
this same basic script works with the delete function i've used... so i'm sure it's my sql statement...
thanks..
Lars
<%
'this file is to create an array called players to delete then delete's them from the list
dim playercount
playercount=Request.form("playercount"
dim playerstodelete
playerstoconfirm=Request.form("confirm"
paid="paid"
itstrue="yes"
sql3 = "INSERT INTO Results (deposit_paid) VALUES ('" & paid & "') WHERE ID IN ("& playerstoconfirm &""
accessdb="../../../../ohio"
dim DSNstring
DSNstring= "DBQ=" & server.mappath(accessdb) & ";DRIVER={Microsoft Access Driver (*.mdb)}"
dim objConn
set objConn = Server.CreateObject("ADODB.Connection"
objConn.Connectionstring = DSNstring
objConn.Open
Response.Write "----- there are currently :" & playercount & " in the database" & chr(13)
Response.Write sql3 & chr(13)
if playerstoconfirm <> "" then
Response.Write " ---- SQL confirming players :" & playerstoconfirm & chr(13)
objConn.Execute sql3
end if
objConn.Close
Set objConn = Nothing
%>
----- code clip ends ------
confirm is a set of numbers passed to this asp page from a form
=======here's my output======
----- there are currently :2 in the database
INSERT INTO Results (deposit_paid) VALUES ('paid') WHERE ID IN (1, 2)
---- SQL confirming players :1, 2
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Missing semicolon ( at end of SQL statement.
/confirmindbase.asp, line 30
===== end of output ======
now.. it says to add a semicolon.. but when i do the page won't run at all...
this same basic script works with the delete function i've used... so i'm sure it's my sql statement...
thanks..
Lars