H
hikehilter
Unregistered / Unconfirmed
GUEST, unregistred user!
我的Access2000数据库,我在Delphi里面用ADO执行查询时,老是提示,The application has
improperly defined a Patameters Object
我的就是日期查询问题,程序如下:
Today1:=DateToStr(Now())+' 00:00:00';
Today2:=DateToStr(Now())+' 23:59:59';
Dm.ADOEvent.Close;
Dm.ADOEvent.SQL.Clear;
Dm.ADOEvent.SQL.Add('Select * From Event');
Dm.ADOEvent.SQL.Add('Where (TodayDate>=ateStar) And (TodayDate<ateEnd)');
Dm.ADOEvent.Parameters.ParamValues['DateStar']:=StrToDateTime(Today1);
Dm.ADOEvent.Parameters.ParamValues['DateEnd']:=StrToDateTime(Today2);
Dm.ADOEvent.Open;
improperly defined a Patameters Object
我的就是日期查询问题,程序如下:
Today1:=DateToStr(Now())+' 00:00:00';
Today2:=DateToStr(Now())+' 23:59:59';
Dm.ADOEvent.Close;
Dm.ADOEvent.SQL.Clear;
Dm.ADOEvent.SQL.Add('Select * From Event');
Dm.ADOEvent.SQL.Add('Where (TodayDate>=ateStar) And (TodayDate<ateEnd)');
Dm.ADOEvent.Parameters.ParamValues['DateStar']:=StrToDateTime(Today1);
Dm.ADOEvent.Parameters.ParamValues['DateEnd']:=StrToDateTime(Today2);
Dm.ADOEvent.Open;