Foxtable(狐表)用户栏目专家坐堂 → [求助]两个表对比部分数据


  共有2666人关注过本帖平板打印复制链接

主题:[求助]两个表对比部分数据

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/4/16 18:17:00 [只看该作者]

参考代码

 

Dim dt1 As DataTable = DataTables("表A")
Dim dt2 As DataTable = DataTables("表B")
For Each dr As DataRow In dt1.Select("")
    Dim fdr As DataRow = dt2.Find("任务 like '" & dr("任务").split(" ")(0) & " %'")
    If fdr Is Nothing Then
        msgbox(dr("任务"))
    Else
        If dr("工时") = fdr("工时") Then
            'msgbox(123)
        End If
    End If
Next


 回到顶部