G
gaojun89757
Unregistered / Unconfirmed
GUEST, unregistred user!
用表过滤的方法可以,用query中SQL语句检索老是出错,请帮忙看一下什么问题?
selldate是DATE型的field,表过滤方法的语句如下:
if (table1.FieldByName('selldate').AsDateTime >= DateTimePicker1.Date) and
(table1.FieldByName('selldate').AsDateTime <= DateTimePicker2.Date)
then accept:=true
else accept:=false;
selldate是DATE型的field,表过滤方法的语句如下:
if (table1.FieldByName('selldate').AsDateTime >= DateTimePicker1.Date) and
(table1.FieldByName('selldate').AsDateTime <= DateTimePicker2.Date)
then accept:=true
else accept:=false;