riqi1:=ComboBox2.Text+'-'+ComboBox3.Text+'-'+ComboBox4.Text;
riqi2:=ComboBox2.Text+'-'+ComboBox5.Text+'-'+ComboBox6.Text;
fstr:='select * from 销售库 where 日期>='+strtodatetime(riqi1)+' and 日期<='+strtodatetime(riqi2);
riqi2:=ComboBox2.Text+'-'+ComboBox5.Text+'-'+ComboBox6.Text;
fstr:='select * from 销售库 where 日期>='+strtodatetime(riqi1)+' and 日期<='+strtodatetime(riqi2);
riqi1:='2001-1-1';
riqi2:='2001-3-3'fstr:='select * from 销售库 where (日期>=''riqi1'') and (日期<=''riqi2'')';
这样对吗?
riqi2:='2001-3-3';
fstr:='select * from 销售库 where (日期>='''+riqi1+''') and (日期<='''+riqi2+''')';