Saludos compañeros, estoy teniendo un extraño problema, y es que estoy tratando de mostrar una consulta que me funcionaba bien con ZEOS y ahora con ADO no me muestra nada, y existen datos en la BD, si pongo el dataset en True me muestra todos los datos pero si hago la consulta no muestra nada:
Código Delphi
[-]procedure TFConsTra.PngSpeedButton1Click(Sender: TObject);
begin
if RadioButton1.Checked then begin
ZTramite.Close;
ZTramite.SQL.Clear;
ZTramite.SQL.Text := 'select * from tramites where tramite_no Like ''' +Edit1.Text+ '*'' and fecha_cre_tra>= '+QuotedStr(Edit2.Text+'-01-01')+' and fecha_cre_tra<= '+QuotedStr(Edit2.Text+'-12-31')+'';
ZTramite.Open;
Label4.Caption := IntToStr(ZTramite.RecordCount);
if ZTramite.RecordCount = 0 then begin
ShowMessage('¡No se encotraron registros!');
Label4.Caption := '0';
exit;
end;
end;
end;
Alguien por favor me ilumíne con esto, hoy mi cabeza tiene pedos
.
Saludos.