T
tjqzl
Unregistered / Unconfirmed
GUEST, unregistred user!
adoquery1.active:=false;
adoquery1.sql.clear;
adoquery1.sql.add('select * from tablename 日期字段>=:date1 and
日期字段<=:date2');
adoquery1.Parameters.('date1').AsDatetime:=datetimepicker1.date;
adoquery1.Parameters.('date2').AsDatetime:=datetimepicker2.date;
adoquery1.active:=true;
adoquery1.sql.clear;
adoquery1.sql.add('select * from tablename 日期字段>=:date1 and
日期字段<=:date2');
adoquery1.Parameters.('date1').AsDatetime:=datetimepicker1.date;
adoquery1.Parameters.('date2').AsDatetime:=datetimepicker2.date;
adoquery1.active:=true;