Foxtable(狐表)用户栏目专家坐堂 → [求助]未将对象引用设置到对象的实例


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

主题:[求助]未将对象引用设置到对象的实例

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


加好友 发短信
等级:贵宾 帖子:35433 积分:178524 威望:0 精华:3 注册:2013/3/30 16:36:00
  发帖心情 Post By:2015/1/13 10:06:00 [显示全部帖子]



For Each r1 As Row In Tables("TEST表").Rows
    W1 = r1("测试1")
    W2 = r1("测试2")
    Dim dr1 As DataRow
    dr1 = DataTables("物料表").Find("物料编码 = '"& W1 & "'")
    if dr1 isnot nothing then
    r1("数量1") = dr1("成品")
    end if
     Dim dr2 As DataRow
    dr2 = DataTables("物料表").Find("物料编码 = '"& W2 & "'")
    if dr2 isnot nothing then
    r1("数量2") = dr2("外协1")
   r1("数量3") = dr2("外协2")
   end if
 
Next

 回到顶部