Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/02/2006, 12:42
Avatar de mc_quake
mc_quake
 
Fecha de Ingreso: enero-2006
Ubicación: www.ecocargo.cl
Mensajes: 683
Antigüedad: 19 años, 3 meses
Puntos: 8
error en asp problema con algo de BOF o EOF

Tipo de error:
ADODB.Field (0x800A0BCD)
El valor de BOF o EOF es True, o el actual registro se eliminó; la operación solicitada requiere un registro actual.

error en linea 14


Cita:
<%
Dim conexion, registros, sql

ejecutiva = request.Form("eje")


Set conexion = Server.CreateObject ("ADODB.Connection")
conexion.Open "DSN=InformeBO"

Set registros = Server.CreateObject ("ADODB.RecordSet")
sql = "SELECT * FROM InforBO WHERE Ejecutivo like '"&ejecutiva&"'"
registros.Open sql, conexion

nombre = registros.fields("Ejecutivo").value
response.write nombre&"nombre"

cont=0
Do while Not registros.EOF
cont = cont + 1
registros.movenext
Loop
registros.Close
Set registros = Nothing

response.write "<link href=""../../Stylos/ProyectoII.css"" rel=""stylesheet"" type=""text/css"">"
response.write "<body leftmargin=""0"" topmargin=""0"" marginwidth=""0"" marginheight=""0"">"
response.write "<table width=""0"" height=""0"" border=""0"" class=""tbl_marco1"">"
response.write " <tr>"
response.write " <td width=""212"" height=""43"" valign=""top""> "
response.write " <table width=""215"" border=""0"">"
response.write " <tr> "
response.write " <td width=""76"" class=""tdti"">Ejecutiva</td>"
response.write " <td width=""56"" class=""tdti"">Reclamos</td>"
response.write " <td width=""64"" class=""tdti"">% Reclamos</td>"
response.write " </tr>"
response.write " <tr>"
response.write " <td class=""tdcon"">"&nombre&"</td>"
response.write " <td class=""tdcon"">"&cont&"</td>"
response.write " <td class=""tdcon"">&nbsp;</td>"
response.write " </tr>"
response.write " </table>"
response.write " </td>"
response.write " <td width=""106"">&nbsp;</td>"
response.write " </tr>"
response.write "</table>"



conexion.Close
Set conexion = Nothing
%>