Foxtable(狐表)用户栏目专家坐堂 → [求助]数据读入问题


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

主题:[求助]数据读入问题

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


加好友 发短信
等级:幼狐 帖子:60 积分:525 威望:0 精华:0 注册:2018/11/1 21:27:00
  发帖心情 Post By:2018/11/23 20:45:00 [只看该作者]

 

Dim cmd  As New SQLCommand
Dim dt As DataTable
cmd.C
cmd.CommandText = "SELECT * Fro m {订单拉板}"

dt = cmd.ExecuteReader()
For Each dr As  DataRow  In dt.DataRows
    If  DataTables("拉板1").Find("订单编号= '" & dr("订单编号") & "'") Is  Nothing  Then
        Dim nr  As  DataRow =  DataTables("拉板1").AddNew()
        For  Each dc  As  DataCol  In dt.DataCols
            nr(dc.name) = dr(dc.name)
        Next
    End  If


Next


 回到顶部
总数 12 1 2 下一页