Foxtable(狐表)用户栏目专家坐堂 → 表datacolchanged报错


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

主题:表datacolchanged报错

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107131 积分:544898 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/3/23 14:45:00 [显示全部帖子]

Dim r1 As DataRow = DataTables("安全费用提取").find("企业名称 = '" & e.DataRow ("企业名称") & "' And 年度 =  '"& e.DataRow("年度") &"'")

或者

if Tables("安全费用使用").current isnot nothing then
    Dim r2 As DataRow = DataTables("安全费用提取").find("企业名称 = '" & Tables("安全费用使用").current ("企业名称") & "' And 年度 =  '"& Tables("安全费用使用").current ("年度") &"'")
            If r2 IsNot Nothing Then
                e.DataRow("本月应提额") = r2("每月提取额")
            Else
                e.DataRow("本月应提额") = "0"
            End If
end if

 回到顶部