Foxtable(狐表)用户栏目专家坐堂 → 批量删除行,报错


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

主题:批量删除行,报错

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


加好友 发短信
等级:三尾狐 帖子:787 积分:6175 威望:0 精华:0 注册:2015/7/25 19:14:00
批量删除行,报错  发帖心情 Post By:2015/10/14 14:28:00 [显示全部帖子]

批量删除行报错,什么情况

 


图片点击可在新窗口打开查看此主题相关图片如下:{sfa6ooe3{_j32)`}x48snd.png
图片点击可在新窗口打开查看

 回到顶部
帅哥哟,离线,有人找我吗?
fytea
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:三尾狐 帖子:787 积分:6175 威望:0 精华:0 注册:2015/7/25 19:14:00
  发帖心情 Post By:2015/10/14 19:47:00 [显示全部帖子]

If e.DataCol.Name = "序号" Then
    If e.NewValue = "1" Then
        e.DataRow("页号")=1
    End If
Else
   
    Select Case e.DataCol.Name
        Case "页数"
            For Each dr As DataRow In e.DataTable.Select("[_SortKey] >= " & e.DataRow("_SortKey"))
                Dim Val1 As Double = e.DataTable.Compute("Sum(页数)","[_SortKey] <= " & dr("_SortKey"))
                           
                dr("页号") = Val1
            Next
    End Select
End If


Dim t As Table = Tables("按卷归整阶段")
For Each r As Row In t.Rows
    r("序号") =r.Index + 1
Next
'-----------------------------------------------------------

'-----------------------------------------------------------
If e.DataCol.Name = "是否归档" Then
    If e.DataRow("是否归档") = True Then
        e.DataRow("操作员") = User.Name
        e.DataRow("归档日期") = Date.Now
        'Else
        'e.DataRow("取消归整人") = User.Name
        'e.DataRow("取消归整时间")= Date.Now
    End If
End If
'-------------------------------------------------------
Select Case e.DataCol.name
    Case "案卷号"
        If e.newvalue > "" Then
            e.DataRow("案卷号")=format(Val(e.newValue),"0000")
        End If
End Select


 回到顶部