Foxtable(狐表)用户栏目专家坐堂 → 数据合并


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

主题:数据合并

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


加好友 发短信
等级:超级版主 帖子:106209 积分:540168 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/3/30 8:54:00 [只看该作者]

For Each dr1 As DataRow In DataTables("表A").datarows
Dim dr2 As DataRow = DataTables("表B").find("第一列='" & dr1("第一") & "' and 第二列='" & dr1("") & "'")
if dr2 is nothing then
    dr2 = DataTables("表B").AddNew()
    
dr2("") = dr1("")
else
dr2("") = dr2("") + dr1("")
end if
Next

 回到顶部
总数 82 1 2 3 4 5 6 7 8 9 下一页