var
strsql:string;
if (trim(edit01.text)='') or (trim(edit02.text)='')or(trim(edit03.text)='') then
showmessage('') else begin
strsql:=' select * from table where field='''+trim(edit01.text)=+''' and ';
strsql:=strsql+'('' field >='+trim(edit02.text)=+''' and field <='''+trim(edit03.text)=+''')';
query1.close;
query1.sql.text:=strsql;
query1.open;
end;