Article ID: 249683 - Last Review: June 23, 2005 - Revision: 2.0 ACC2000: Error Setting Index Property of ADO Recordset Based on a Microsoft Jet DatabaseThis article was previously published under Q249683 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies only to a Microsoft Access database (.mdb). For a Microsoft Access 2002 version of this article, see 290060 (http://support.microsoft.com/kb/290060/EN-US/ ) . On This PageSYMPTOMS
When you try to set the Index property of an ActiveX Data Objects (ADO) recordset that is based on a table in a Microsoft Jet database, you may receive the following error message:
Run-time error '3251': Object or provider is not capable of performing requested operation.
Run-time error '3251': Current provider does not support the necessary interface for Index functionality. CAUSE
You are trying to set the Index property of a linked table within the database.
RESOLUTION
Open a separate ADO connection to the back-end database, and open the table directly instead of using the linked table. To see an example of how to do this, follow these steps: 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. NOTE: The sample code in this article uses Microsoft ActiveX Data Objects. For this code to run properly, you must reference the Microsoft ActiveX Data Objects 2.x Library (where 2.x is 2.1 or later.) To do so, click References on the Tools menu in the Visual Basic Editor, and make sure that the Microsoft ActiveX Data Objects 2.x Library check box is selected.
STATUS
This behavior is by design.
MORE INFORMATIONNOTE: The sample code in this article uses Microsoft ActiveX Data Objects. For this code to run properly, you must reference the Microsoft ActiveX Data Objects 2.x Library (where 2.x is 2.1 or later.) To do so, click References on the Tools menu in the Visual Basic Editor, and make sure that the Microsoft ActiveX Data Objects 2.x Library check box is selected. Steps to Reproduce Behavior
REFERENCESFor additional information about using the Seek method in an ADO recordset based on a table in a Microsoft Jet database, click the article number below
to view the article in the Microsoft Knowledge Base:
243465
(http://support.microsoft.com/kb/243465/EN-US/
)
ACC2000: How to Use the Seek Method with ActiveX Data Objects (ADO) Against a Jet Recordset
| Article Translations
|
Back to the top
