query1.sql.text:=’select * from 违法人员管理.db where 处理时间=’+datetostr(EncodeDate(Year,Month,Day));怎么会出错,“处理时间”是日期型 ,各位高手应该怎么去写这条语句。谢谢