Article ID: 290060 - Last Review: August 10, 2004 - Revision: 4.0 You cannot set Index property of ADO recordset that is based on a Microsoft Jet databaseThis article was previously published under Q290060 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 249683 (http://support.microsoft.com/kb/249683/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': 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 then open the table directly instead of using the linked table. To see an example of how to do this, follow these steps. 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 the Behavior
REFERENCES
For additional information about using the Seek method in an ADO recordset based on a table in a Microsoft Jet database, click the following article number to view the article in the Microsoft Knowledge Base:
287638
(http://support.microsoft.com/kb/287638/
)
How to use the Seek method with ActiveX Data Objects (ADO) against a Jet recordset
| Article Translations
|
Back to the top
