不应该,你加入代码测试,截图发上来。
If e.Table.Current Is Nothing Then '如果Current为Nothing
Return '则返回
End If
Dim wz As Integer
Dim dr As DataRow
dr = DataTables("快件列表").Find("[序号] = '" & e.Table.Current("序号") & "'")
If dr Is Nothing Then
msgbox(DataTables("快件列表").datarows.count & " " & Tables("快件列表").Rows.count)
DataTables("快件列表").LoadFilter = "[序号] = '" & e.Table.Current("序号") & "'"
DataTables("快件列表").AppendLoad
msgbox(DataTables("快件列表").datarows.count & " " & Tables("快件列表").rows.count)
End If
dr = DataTables("快件列表").Find("[序号] = '" & e.Table.Current("序号") & "'")
msgbox(dr is nothing)
If dr IsNot Nothing Then
wz = Tables("快件列表").FindRow(dr)
If wz >= 0 Then
Tables("快件列表").Position = wz
End If
End If
[此贴子已经被作者于2014-5-9 16:04:38编辑过]