关于在delphi中对两个日期之间的记录进行查询。急急!!!!
现在我要查找某个时间段的记录进行查询,时间来自DateTimePicker1,请问如何写。
语句在SQL中能够执行,但是在delphi中不能执行。
//=========================================
ADOQry_Grid.SQL.Add('and a.shijiaorq between '''+DateToStr(DateTimePicker1.Date)+''' and '''+DateToStr(DateTimePicker1.Date)+'' );
//========================================