以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  想要对比两张表 查看主表缺失什么数据怎么做啊  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=116568)

--  作者:maoyanshi
--  发布时间:2018/3/27 9:33:00
--  想要对比两张表 查看主表缺失什么数据怎么做啊
求助  想要对比两张表 查看主表缺失什么数据怎么做啊
--  作者:有点甜
--  发布时间:2018/3/27 9:40:00
--  

参考

 

http://www.foxtable.com/webhelp/scr/1479.htm

 

 


--  作者:有点甜
--  发布时间:2018/3/27 9:40:00
--  

或者写代码

 

Dim dt As DataTable = DataTables("表A")
For Each dr As DataRow In dt.DataRows
    If DataTables("员工").Find("身份证号码 = \'" & dr("身份证号码") & "\'") Is Nothing Then
        Dim nr As DataRow = DataTables("员工").AddNew()
        For Each dc As DataCol In dt.DataCols
            nr(dc.name) = dr(dc.name)
        Next
    End If
Next