我先像这样做的:
Dim cnt As Integer = Tables("情况发布").Rows.Count
Dim qkid As Integer = DataTables("情况发布").Compute("Max(_Identify)")
Dim Filter As String = "[_Identify] > " & qkid
DataTables("情况发布").AppendLoad(Filter, False)
If Tables("情况发布").Rows.Count > cnt Then
Tables("情况发布").Position = cnt
End If
不行
后来把 改成:
Dim cnt As Integer = Tables("
窗口_table3 ").Rows.Count
Dim qkid As Integer = DataTables("情况发布").Compute("Max(_Identify)")
Dim Filter As String = "[_Identify] > " & qkid
DataTables("情况发布").AppendLoad(Filter, False)
If Tables("窗口_table3").Rows.Count > cnt Then
Tables("
窗口_table3 ").Position = cnt
End If
成功一次,后来就一直报错。请问是什么原因?