I suspect it is here
Code:
cint(Request.form("p_delete").item(p_thisDelete))
Request.form("p_delete") is technically an array. You are asking for item p_thisDelete of the array. p_thisDelete starts off being 1 but you increment it so it will increase. it may increase until it extends beyond the bounds of your array.
Response.write out the value of this variable inside your loop and see what value it is.
You will need to remove this line
Code:
<% Response.buffer = TRUE= true %>
to see the results (btw it should be <%Response.buffer = TRUE%>)