我在窗口按钮设置以下代码:
If Vars("用户组") = "管理员" and Vars("用户组") <> "车间主管"
With Tables("日报表")
If .TopPosition > -1 Then
For i as Integer = .TopPosition To .BottomPosition
If .Rows(i)("审核") = False Then
.Rows(i)("审核") = True
.Rows(i)("审核人") = Tables("登陆")(0)("用户名") & " " & now
Else
.Rows(i)("审核") = False
.Rows(i)("审核人") = Tables("登陆")(0)("用户名") & " " & now
End If
Next
End If
End With
End If
If Vars("用户组") = "车间主管"
With Tables("日报表")
If .TopPosition > -1 Then
For i as Integer = .TopPosition To .BottomPosition
If .Rows(i)("审核") = False Then
.Rows(i)("审核") = True
.Rows(i)("审核人") = Tables("登陆")(0)("用户名") & " " & now
End If
Next
End If
End With
End If
如选定行>筛选行/2,就报错,代码执行筛选行的一半行数,比如我窗口表筛选出20行"审核" = False的数据,我选择其中11到20行都一样,点按钮,只执行10行,并提示。
提示如下。

此主题相关图片如下:未命名.gif

请帮忙看看问题出在哪里
[此贴子已经被作者于2010-3-21 23:12:35编辑过]