Foros del Web » Programando para Internet » ASP Clásico »

Error EOF

Estas en el tema de Error EOF en el foro de ASP Clásico en Foros del Web. Código: <% txtSeccAdd = Request.Form("NomSeccAdd") txtJuegoAdd = Request.QueryString("ID") strSQL = "SELECT SECCION FROM GAMES_SECC WHERE ID_JUEGO=" & txtJuegoAdd MyRecordset = MyConn.Execute(strSQL) Do While Not MyRecordset.EOF ...
  #1 (permalink)  
Antiguo 19/01/2003, 07:35
Avatar de meru-kun  
Fecha de Ingreso: noviembre-2002
Ubicación: Madrid
Mensajes: 854
Antigüedad: 21 años, 6 meses
Puntos: 0
Error EOF

Código:
<%
txtSeccAdd = Request.Form("NomSeccAdd")
txtJuegoAdd = Request.QueryString("ID")
strSQL = "SELECT SECCION FROM GAMES_SECC WHERE ID_JUEGO=" & txtJuegoAdd
MyRecordset = MyConn.Execute(strSQL)
Do While Not MyRecordset.EOF or MyRecordset.BOF
If MyRecordset("SECCION") = txtSeccAdd Then
 Exit Do
 response.write("MAL")
Else
 response.write("Se va a añadir la seccion:" & txtSeccAdd)
End If
MyRecordset.MoveNext
loop
MyRecordset.Close
%>
Con ese codigo me da un error, que dice que MyRecordset No soporta el parametro EOF... ¿por que?
__________________
Tu portal de manga y anime.
  #2 (permalink)  
Antiguo 19/01/2003, 10:07
Avatar de urjose  
Fecha de Ingreso: diciembre-2001
Mensajes: 5.286
Antigüedad: 22 años, 5 meses
Puntos: 1
Y estas seguro de ya haber abierto la conexion MyConn?
  #3 (permalink)  
Antiguo 19/01/2003, 14:09
Avatar de meru-kun  
Fecha de Ingreso: noviembre-2002
Ubicación: Madrid
Mensajes: 854
Antigüedad: 21 años, 6 meses
Puntos: 0
Totalmente seguro...
__________________
Tu portal de manga y anime.
  #4 (permalink)  
Antiguo 20/01/2003, 14:14
Avatar de meru-kun  
Fecha de Ingreso: noviembre-2002
Ubicación: Madrid
Mensajes: 854
Antigüedad: 21 años, 6 meses
Puntos: 0
¿Cual puede ser el problema? Alguna otra forma de hacer exactamente lo mismo, pero usando diferente codigo?
__________________
Tu portal de manga y anime.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:04.