why is this code only deleting on the first pass when there is more than one item in the array?
checking the array shows all items are present, lower and upper bounds are correct
if the array holds only one item it always works
=============== =============== =============== =
Set oConn = Server.CreateOb ject("ADODB.Con nection")
oConn.Open Connstring
arrPlayers = split(strPlayer s,",")
For i = Lbound(arrPlaye rs) to Ubound(arrPlaye rs)
if IsObject(rs) then set rs=nothing
strSQL = "Delete FROM playoffs p WHERE p.Playercode= " & arrPlayers(i)
set rs = oConn.execute(s trSQL)
Next
Set rs = nothing
oConn.close
Set oConn = nothing
checking the array shows all items are present, lower and upper bounds are correct
if the array holds only one item it always works
=============== =============== =============== =
Set oConn = Server.CreateOb ject("ADODB.Con nection")
oConn.Open Connstring
arrPlayers = split(strPlayer s,",")
For i = Lbound(arrPlaye rs) to Ubound(arrPlaye rs)
if IsObject(rs) then set rs=nothing
strSQL = "Delete FROM playoffs p WHERE p.Playercode= " & arrPlayers(i)
set rs = oConn.execute(s trSQL)
Next
Set rs = nothing
oConn.close
Set oConn = nothing
Comment