S
svba
Unregistered / Unconfirmed
GUEST, unregistred user!
sqlStr:= 'select * from events where eventTime Between ateStart and ateEnd'; ADOQuery1.Close; ADOQuery1.SQL.Clear; ADOQuery1.SQL.Add(sqlStr); Dialogs.ShowMessage(FormatDateTime('c', DateTimePicker1.DateTime)); ADOQuery1.Parameters.ParamByName('DateStart').Value:= DateTimePicker1.Date; ADOQuery1.Parameters.ParamByName('DateEnd').Value:= DateTimePicker1.Date; ADOQuery1.Open;