H
hzyingmu
Unregistered / Unconfirmed
GUEST, unregistred user!
执行以下程序后,系统提示出错:"Invalid use of Keyword Token ate>=?'
Query1.Sql.Clear;
Query1.Sql.Add('Select * from fp');
Query1.Sql.Add('Where Date>=ate1 And Date<=ate2');
Query1.Prepare;
Query1.Params[0].AsDate:=DateTimePicker1.Date;
Query1.Params[1].AsDate:=DateTimePicker2.Date;
Query1.Open;
不知是何道理?应如何改?请专家赐教!谢谢!!
我用的是Delphi4,数据库是DBF。
Query1.Sql.Clear;
Query1.Sql.Add('Select * from fp');
Query1.Sql.Add('Where Date>=ate1 And Date<=ate2');
Query1.Prepare;
Query1.Params[0].AsDate:=DateTimePicker1.Date;
Query1.Params[1].AsDate:=DateTimePicker2.Date;
Query1.Open;
不知是何道理?应如何改?请专家赐教!谢谢!!
我用的是Delphi4,数据库是DBF。