Ver Mensaje Individual
  #4  
Antiguo 26-03-2012
maru_onofre maru_onofre is offline
Registrado
NULL
 
Registrado: feb 2012
Posts: 9
Reputación: 0
maru_onofre Va por buen camino
Yo lo realizo de esta manera espero sea de tu ayuda

Código Delphi [-]
dm.ADOQuery_libros_filtro.Close;
dm.ADOQuery_libros_filtro.SQL.Clear;
dm.ADOQuery_libros_filtro.SQL.Add('Select* from libros where couter like :cod');
dm.ADOQuery_libros_filtro.Parameters.ParamByName('cod').Value:= '%'+txtdato.Text+'%';
dm.ADOQuery_libros_filtro.Open;


if (dm.ADOQuery_libros_filtro.IsEmpty) then
begin
ShowMessage('El Dato ('+txtdato.Text+') No Esta Registrado ');
end
else
begin
DBGrid1.Visible:= true;
DBGrid1.DataSource:= dm.DsFiltro;
Responder Con Cita