我在DataTable中存储了一个ADO记录集。我已经迭代到了最后。在同一个代码中,我想重申一下,但它给了我一个错误 -
Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IndexOutOfRangeException: There is no row at position -1.
at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
at System.Data.RBTree`1.get_Item(Int32 index)
at System.Data.DataRowCollection.get_Item(Int32 index)
我看了一眼 - http://www.techrepublic.com/blog/10-things/10-plus-mistakes-to-avoid-when-using-vba-recordset-objects/ 但它并没有给我一个确切的方法来将“行指针”移回第一行。
我该怎么做?