Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/05/2005, 12:31
micheliyo
 
Fecha de Ingreso: mayo-2005
Mensajes: 17
Antigüedad: 19 años, 3 meses
Puntos: 0
Error en codigo

Por favor, soy un poco novato en ASP y me da este error:
ADODB.Field error '80020009' Either BOF or EOF, or the current record has been deleted, Requested operation requires a current record.
micheliyo/carrito.asp, line 0

podria ayudarme alguien a terminarlo, es el tipico carro de la compra, pero no encuentro donde puede estar el error, gracias de antemano.
Un saludo!



<html>
<head><title>Carrito de la compra</title>
<script language="JavaScript">
function modificar(sel,codigo){
open("mod_carrito.asp?codigo=" + codigo + "&unidades=" + sel.value,"_parent")
}
function borrar(codigo){
open("borrar_carro.asp?codigo="+codigo,"_parent")
}
</script>
</head>
<body>
<%

vector1=session("carro").keys
vector2=session("carro").items

set conexion = Server.Createobject("adodb.connection")
strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("datos/recambios.mdb")
conexion.open strconn

response.write("<table width=100% border=0>")
for i=0 to session("carro").count-1
sql="select * from Productos where Referencia='" & vector1(i) & "'"
set rs=conexion.execute(sql)
%>
<tr><td rowspan=2><a href=producto.asp?codigo=<%=rs("Referencia")%>><im g src=fotos/<%= rs("Foto")%> height=70 border=0></a></td><td colspan=3><%=rs("Nombre")%></td></tr>
<tr><td>Precio : <%=formatnumber(rs("Precio"),2,-1,0,-1)%> € </td><td><%=rs("Plazo_entrega")%> días</td>
<td><select onchange=modificar(this,"<%=rs("Referencia")%>")>
<%
for x=1 to 30
if x=vector2(i) then
response.write("<option value=" & x & " selected>" & x)
else
response.write("<option value=" & x & ">" & x)
end if
next
%>
</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="" onclick="borrar('<%=rs("Referencia")%>');return false"><img src=fotos/borrar.gif border=0></a></td></tr>
<tr><td colspan=4 background=fotos/barra.gif height=10></td></tr>
<%
next
%>
</table>
</body>
</html>