The information in this article applies to:
SYMPTOMSUsing the FindFirst, FindNext, FindLast, or FindPrevious method on an object variable of type Table results in this error: Pressing the F1 key on this error dialog gives the following description from the Visual Basic Help:
CAUSEThe FindFirst, FindNext, FindLast, and FindPrevious methods can be used only with a Dynaset or Snapshot. These Find methods cannot be used with a Table object variable. WORKAROUND
To move between the records of a Table, use the Seek method or the Move
methods (MoveFirst, MoveLast, MoveNext, and MovePrevious). STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce BehaviorThe following code demonstrates the error using the FindFirst method on a Table object variable:
The following code works around this behavior by first creating a Dynaset
from the Table, and then using FindFirst on the Dynaset:
REFERENCESSee "Positioning the Current Record in a Recordset" on Pages 68-77 of the Visual Basic Professional Edition, version 3.0, "Professional Features Book 2" manual. Page 72 states, "The Find methods cannot be used on Table objects." Additional query words: 3.00
Keywords : |
Last Reviewed: September 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |