The information in this article applies to:
SYMPTOMS
When using a manually-created chaptered (hierarchical) recordset where no Data Provider is needed, attempts to assign a reference on a child recordset to a Recordset object variable returns an E_FAIL error. CAUSE
In this circumstance, since no Data Provider is needed to create the recordset, the member variable that keeps a reference to the Data Provider's session is being set to NULL. RESOLUTIONA supported fix that corrects this problem is now available from Microsoft, but
it has not been fully regression tested and should be applied only to systems
experiencing this specific problem. If you are not severely affected by this
specific problem, Microsoft recommends that you wait for the next Microsoft Data Access Components service pack
that contains this fix. http://www.microsoft.com/support/supportnet/overview/overview.asp The English version of this fix should have the following file attributes or later:
WorkaroundThere is no workaround for this problem. If a Data Provider is specified in an attempt to circumvent the problem, the shape provider attempts to connect to the database server when creating the recordset. Lacking any connection information, the connection attempt fails.STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONManual Installation
Steps to Reproduce BehaviorCopy the following code into a Visual Basic application, and add a reference to the Microsoft ActiveX Data Objects 2.1 Library. Run the code, and notice that an E_FAIL error occurs when attempting to save the reference to the child recordset into another Recordset object.
Additional query words: datashape data shape provider e_fail error manually created creatable recordset reference child heirarchial chaptered
Keywords : kbDatabase kbMDAC kbDSupport kbMDAC210SP2fix |
Last Reviewed: December 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |