135
begin
Date1:=DateToStr(DateTimePicker1.date);//FormatDateTime('dd.mm.yyyy',
MaskEditDate1.Text);
Date2:=DateToStr(DateTimePicker2.date);//FormatDateTime('dd.mm.yyyy',
MaskEditDate2.Text);
ADOQuery1.Filtered:=false;
ADOQuery1.Filter:='date_open>='+Date1+' and '+'date_open<='+Date2;
ADOQuery1.Filtered:=true;
Label_Find.Caption:='Отключить фильтр';
end;
if RadioButton2.Checked then
if txtFind.Text<>'' then
begin
adoQuery1.Filtered:=false;
adoQuery1.Filter:='krat_name '+ ' LIKE ' + #39 + '%' + txtFind.Text + '%' + #39;
adoQuery1.Filtered:=true;
Label_Find.Caption:='Отключить фильтр';
end;
if RadioButton3.Checked then
if txtFind.Text<>'' then
begin
adoQuery1.Filtered:=false;
adoQuery1.Filter:='fio '+ ' LIKE ' + #39 + '%' + txtFind.Text + '%' + #39;
adoQuery1.Filtered:=true;
Label_Find.Caption:='Отключить фильтр';
end;