Article ID: 287638 - Last Review: October 11, 2006 - Revision: 7.4 How to use the Seek method with ActiveX Data Objects (ADO) against a Jet recordsetThis article was previously published under Q287638 Advanced: Requires expert coding, interoperability, and multiuser
skills. This article applies only to a Microsoft Access database (.mdb). For a Microsoft Access 2000 version of this article, see 243465 (http://support.microsoft.com/kb/243465/EN-US/ ) . SUMMARY This article shows you how to use the Seek method with an ActiveX Data Objects (ADO)
recordset. Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. MORE INFORMATION The following example shows you how to use the Seek method to find a customer order with a particular Order ID and
Product ID. If the order is found, the example prints the quantity of the
customer order in the Immediate window. Usually, you can choose between using a client-side cursor library or one that is located on the server. In order for the Seek method to work, you must use a server-side cursor, as denoted in the CursorLocation property. Additionally, you can use the Seek method only when a recordset is accessing the table directly. In this example, the recordset is instructed to access the table directly by the adCmdTableDirect argument in the Open method. You cannot use the Seek method on objects such as queries and linked tables. You can use the Seek method only on native Microsoft Jet tables. If your database contains linked tables, you can open an external connection to the back-end database that stores the table, and then use the Seek method directly on the table.
REFERENCES
For additional information about using the Seek method with Microsoft Jet
tables, click the following article number to view the article in the Microsoft
Knowledge Base: 290060
(http://support.microsoft.com/kb/290060/
)
ACC2002: Error Setting Index Property of ADO Recordset That Is Based on
a Microsoft Jet Database
| Article Translations
|
Back to the top
