ASP - PORQUE MARCA ESTO Either BOF or EOF is True, or th

 
Vista:

PORQUE MARCA ESTO Either BOF or EOF is True, or th

Publicado por Esthela (9 intervenciones) el 02/08/2001 23:08:45
Hola a ver si me pueden ayudar copn esto porfavor tengo este codigo para dar con un numero de problema:
temp1="select id_problema from prob where nombre='"&nombre&"' and departamento='"&departamento&"' and email='"&emailvar&"' and problema= '" & problema & "' and resuelto='"&resuelto&"' and '"&ip1&"'='"&ip3&"'"
nurep.open temp1,Conexion
If Tabla.BOF And Tabla.EOF Then
nureporte=nurep.fields("id_problema")
end if
Y ME MARCA ESTE ERROR
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record
PORQUE SI YA CHEQUE TODO LO DEL SQL FUERA IGUAL A LO QUE COMPARO, UNA DE MIS PREGUNTAS ES COMO LE PUEDO HACER Y OTRA CON QUE INSTRUCCION LE DIGO A LA TABLA QUE SE VAYA AL INICIO,PUES LE PONGO TABLA.MOVEFIRST, Y SE HACE LOCA,NUNCA SE VA AL INICIO Y ME MARCA ERROR,OJALA ME PUEDAN AYUDAR, DE ANTEMANO MUCHISIMAS GRACIAS POR SU ATENCION
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:PORQUE MARCA ESTO Either BOF or EOF is True, or

Publicado por Polaco CL (20 intervenciones) el 03/08/2001 06:16:58
Hola
'Reco es el objeto Recordset

Temp1="select id_problema from prob where nombre='"&nombre&"' and departamento='"&departamento&"' and email='"&emailvar&"' and problema= '" & problema & "' and resuelto='"&resuelto&"' and '"&ip1&"'='"&ip3&"'"
Reco.open Temp1,Conexion
If Reco.BOF And Reco.EOF Then
Variable_A = Reco("id_problema")
end if

Espero esto te funcione... Adios

Miguel Peredo
CHILE
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:PORQUE MARCA ESTO Either BOF or EOF is True, or

Publicado por dmarm (117 intervenciones) el 03/08/2001 11:59:59
no puedes hacer eso....
si se cumple que es EOF y BOF no puedes coger nada del recordset porque esta vacio!!!!!

debes poner (not .EOF) AND (not.BOF) entonces ahora si coges del recordset

un saludo!!!!!
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:PORQUE MARCA ESTO Either BOF or EOF is True, or

Publicado por Cesar (21 intervenciones) el 05/08/2001 07:39:06
Otra opcion para k no aparesca este error es :
Cuando crees una base de datos agrega una fila y pon todos sus valores = 0, ya con esto la base de datos tiene un valor y puedes agregar datos sin problemas y sin k aparesca este error...
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar