以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  滤表中符合条件的所有数据  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=101371)

--  作者:peibaomin
--  发布时间:2017/5/29 17:04:00
--  滤表中符合条件的所有数据
怎样过滤表中符合条件的所有数据?
--  作者:有点色
--  发布时间:2017/5/29 17:23:00
--  

这样?

 

Tables("表A").Filter = "第一列 = \'123\' and 第二列 = \'456\'"

 

这样?

 

Dim t As Table = Tables("表A")
Dim str As String = "-1,"
str = str & t.DataTable.GetComboListString("_Identify", "第一列 = \'123\' and 第二列 = \'456\'").replace("|", ",")
t.Filter = "_Identify not in (" & str.trim(",") & ")"