A
ASIAWAN
Unregistered / Unconfirmed
GUEST, unregistred user!
在用DBF資料庫時如果用DATETIMEPICKER設定在同一天范圍
總是不能找到資料,而要向前多一天, 如:
DATASET.SQL.ADD('SELECT * FROM INVOICE WHERE DATE>=:START AND DATE<=:END')
DATASET.P..NAME('START').VALUE:=DATETIMEPICKER1.DATETIME;
DATASET.P..NAME('END').VALUE=DATETIMEPICKER2.DATETIME;
DATASET.SQL.OPEN;
總是不能找到資料,而要向前多一天, 如:
DATASET.SQL.ADD('SELECT * FROM INVOICE WHERE DATE>=:START AND DATE<=:END')
DATASET.P..NAME('START').VALUE:=DATETIMEPICKER1.DATETIME;
DATASET.P..NAME('END').VALUE=DATETIMEPICKER2.DATETIME;
DATASET.SQL.OPEN;