Foxtable(狐表)用户栏目专家坐堂 → [求助]如何实现最新记录的选取并生成表


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

主题:[求助]如何实现最新记录的选取并生成表

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


加好友 发短信
等级:狐神 帖子:4640 积分:33850 威望:0 精华:0 注册:2008/8/31 22:44:00
  发帖心情 Post By:2014/3/18 23:27:00 [显示全部帖子]

在“要得到的表”中的DataColChanged设置以下代码试试:


Dim dr As DataRow = e.DataRow
If e.DataCol.Name = "第一列"
    Dim dr1 As DataRow = DataTables("表A").Find("第一列='" & dr("第一列") & "'","第二列 Desc")
    Dim dr2 As DataRow = DataTables("表B").Find("第一列='" & dr("第一列") & "'")
    If dr1 IsNot Nothing
        dr("最新进度") = dr1("第三列")
    End If
    If dr2 IsNot Nothing
        dr("第二列") = dr2("第二列")
    End If
End If

 回到顶部