Foxtable(狐表)用户栏目专家坐堂 → 如何筛选有空的行?或者筛选出内容完整的行?急求!!


  共有2311人关注过本帖树形打印复制链接

主题:如何筛选有空的行?或者筛选出内容完整的行?急求!!

帅哥哟,离线,有人找我吗?
有点色
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:13837 积分:69650 威望:0 精华:0 注册:2016/11/1 14:42:00
  发帖心情 Post By:2017/5/3 14:20:00 [显示全部帖子]

 比如代码

 

Tables("表A").Filter = "第一列 is null or 第二列 is null"

 

Tables("表A").Filter = "第一列 is not null and 第二列 is not null"

 

如果循环所有列,就这样写

 

Dim t As Table = Tables("表A")
Dim str As String = ""
For Each c As Col In t.Cols
    str &= c.name & " is null or "
Next
str = str.Substring(0, str.length-3)
t.filter = str

 

--------------------------------------

 

Dim t As Table = Tables("表A")
Dim str As String = ""
For Each c As Col In t.Cols
    str &= c.name & " is not null and "
Next
str = str.Substring(0, str.length-4)
t.filter = str


 回到顶部