Chequea esto
select * from TABLA where FECHA between '''+edit1.text+''' and '''+edit2.text+''';
Cualquier cosa grita
Pero te aconsejo algo asi
query.sql.clear;
query.sql.add('Select tusCampos from tuTabla where CampoFecha between :fecha1 and :fecha2');
query.parambyname('fecha1').asdatetime:=strtodate(edit1.text);
query.parambyname('fecha2').asdatetime:=strtodate(edit2.text);
query.open;
y voala
|