Foxtable(狐表)用户栏目专家坐堂 → 条码的有效检验


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

主题:条码的有效检验

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


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

For Each dr As DataRow In DataTables("表A").datarows
    Dim fdr As DataRow = dr.DataTable.find("a列条码 = '" & dr("b列条码") & "'")
    If fdr IsNot Nothing Then
        dr("检查B列当中有哪些是A列没有的") = Nothing
    Else
        dr("检查B列当中有哪些是A列没有的") = dr("b列条码")
    End If
Next

For Each dr As DataRow In DataTables("表A").datarows
    Dim count As Integer = dr.DataTable.compute("count(_Identify)", "a列条码 = '" & dr("a列条码") & "'")
    If count <= 1 Then
        dr("检验A列条码是否重复") = Nothing
    Else
        dr("检验A列条码是否重复") = count
    End If
Next

 


 回到顶部