Foxtable(狐表)用户栏目专家坐堂 → [求助]关联筛选


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

主题:[求助]关联筛选

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


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

Dim t1 As Table = Tables("钢结构关联筛选")
Dim t2 As Table = Tables("Record")
Dim idxs As String = "-1,"
For Each r As Row In t2.Rows
    Dim dr As DataRow = t1.DataTable.Find("Drw_No = '" & r("Drw_No") & "' and Mark_No = '" & r("Mark_No") & "'")
    If dr IsNot Nothing Then
        idx &= r("_Identify") & ","
    End If
Next
t2.filter = "_Identify in (" & idx.trim(",") & ")"

 回到顶部