Ver Mensaje Individual
  #1  
Antiguo 02-07-2003
sergio_015 sergio_015 is offline
Miembro
 
Registrado: jul 2003
Ubicación: Aguascalientes, Ags.
Posts: 46
Reputación: 0
sergio_015 Va por buen camino
Problemas con Adoquery

Como yo soy nuevo, ahora mi problema es que quiero realizar una consulta donde el usuario ponga la variable en un Edit y el sistema realize la busqueda, mi metodo es el siguiente:

AdoQuery1.Active:=false;
AdoQuery1.SQL.Clear;
AdoQuery1.SQL.Add('SELECT Nodo, Ubicación, IP, from inventario where Nodo='+#39+Edit1.Text+#39);
AdoQuery1.ExecSQL;
AdoQuery1.Active:=true;

La consulta la realiza bien pero ejecuto la primer consulta y enseguida ingreso otra variable para buscar otro valor me marca el siguienete error:
"Project Registro.exe raised exception class EOLeException with message 'Either BOF or EOF is true, or the current has been deleted. Requesed operation requires a current record' Proces stoped. Use Stop o Run to continue'.

Que puede ser que me este ocacionando esto???????
__________________
Sergio Esquivel Arredondo
T.S.U. Informatica
Responder Con Cita