我想用选择的时间来查找
代码如下:
procedure TForm4.Button1Click(Sender: TObject);
begin
self.ADOQuery1.Parameters.ParamByName('sttime'):=cxdateedit1.date;
self.ADOQuery1.Open;
end;
它提示错误:[Error] Unit4.pas(35): Left side cannot be assigned to
            [Error] Unit4.pas(35): Incompatible types: 'TParameter' and 'TDateTime'
            [Fatal Error] Project1.dpr(8): Could not compile used unit 'D:\Program Files\Borland\Delphi6\Projects\Unit4.pas'
请问是那里错了啊!