我
我为编程狂
Unregistered / Unconfirmed
GUEST, unregistred user!
if (ComboBox1.Text<>'') and (ComboBox2.Text<>'') and
(ComboBox3.Text<>'') and (ComboBox4.Text<>'') and
(ComboBox5.Text<>'') and (ComboBox6.Text<>'') then
begin
ADOTable1.Filter:= '单位='''+ComboBox3.Text+'''';
ADOTable1.Filtered:=True;
DBGrid1.DataSource:=DataSource1;
end;
这样写不行呀,怎么写才能实现多处查询呀,在线等。
(ComboBox3.Text<>'') and (ComboBox4.Text<>'') and
(ComboBox5.Text<>'') and (ComboBox6.Text<>'') then
begin
ADOTable1.Filter:= '单位='''+ComboBox3.Text+'''';
ADOTable1.Filtered:=True;
DBGrid1.DataSource:=DataSource1;
end;
这样写不行呀,怎么写才能实现多处查询呀,在线等。