B
blave
Unregistered / Unconfirmed
GUEST, unregistred user!
我用的是delphi+access,我在过滤数据库的时候出现问题
代码如下:
procedure Tmzgl.ComboBox2Change(Sender: TObject);
begin
with adotable6 do
begin
filtered:=false;
filteroptions:=[focaseinsensitive];
filter:='keshi='''+combobox2.text+'''';
filtered:=true;
end;
end;
运行时提示如下错误:
FilterOptions are not supported!
换成adodataset也是一样,是不是因为access不支持filter属性,小弟非常需要这样的过滤,不知道
哪位老大知道万望告诉,如果这种方法真的不行,有没有别的方案,请附源码,感谢感谢
代码如下:
procedure Tmzgl.ComboBox2Change(Sender: TObject);
begin
with adotable6 do
begin
filtered:=false;
filteroptions:=[focaseinsensitive];
filter:='keshi='''+combobox2.text+'''';
filtered:=true;
end;
end;
运行时提示如下错误:
FilterOptions are not supported!
换成adodataset也是一样,是不是因为access不支持filter属性,小弟非常需要这样的过滤,不知道
哪位老大知道万望告诉,如果这种方法真的不行,有没有别的方案,请附源码,感谢感谢