Foxtable(狐表)用户栏目专家坐堂 → 跨表引用的问题


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

主题:跨表引用的问题

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


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2013/10/19 15:56:00 [显示全部帖子]

命令窗口执行:

 

Dim nms() As String = {"W39","W40","W41","W42","W43","W44","W45","W46"}
For i As Integer = 0 To Tables("需求表").Rows.count - 2
    Dim r1 As Row = Tables("需求表").Rows(i)
    Dim r2 As Row = Tables("需求表").Rows(i + 1)
    If r1.IsNull("CustomerPN") = False AndAlso r2.IsNull("CustomerPN") Then
        Dim dr As DataRow = DataTables("交货计划表").find("CustomerPN = '" & r1("CustomerPN") & "'")
        If dr IsNot Nothing Then
            For Each nm As String   In nms
                r2(nm) = dr(nm)
            Next
        End If
    End If
Next

 

 

你这种格式,似乎在把foxtable当做excel用了


 回到顶部