The information in this article applies to:
SYMPTOMS
When attempting to Filter Data using the Filter option in an application
generated by the Visual InterDev 1.0 Data Form Wizard or when returning an
ADO Recordset when using "AbsolutePaging," "PageSize," and the "Filter"
properties, incorrect results are displayed.
CAUSE
The cause of this problem for MDAC 1.5 installations is a bug with
filtering. This bug has been fixed in MDAC 2.0; however, the behavior may
still occur with MDAC 2.x.
RESOLUTION
For both MDAC 1.5 and MDAC 2.x installations, you will need to set the
CursorLocation property of the recordset object to adUseClient (3) prior to
opening the recordset. This means that the underlying data provider (OLE
DB) will maintain the cursor (query results).
For MDAC 2.x installations, setting a client-side cursor will force a
Static CursorType. Having a static CursorType may cause problems with
concurrency of data. For example, if two clients attempt to update the same
record, the first will succeed, but the second will fail since the changes
the first client made have caused the second clients cursor information to
be "out of synch". The error encountered will read:
To resolve this behavior, refresh the cursor information before updating the recordset. To do this, you will use the Recordset Object's Requery method. Edit xxxAction.asp and locate the following section of code. Add the lines marked with the asterisks below:
STATUSMicrosoft has confirmed this to be a bug in Microsoft's Data Access Components version 1.0. The bug has been fixed in Microsoft's Data Access Components 2.x. REFERENCESFor the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site: http://support.microsoft.com/support/vinterdev/For the latest information on Microsoft's Data Access Components, go to the following Web site: http://www.microsoft.com/data/ Additional query words: bug Visual Interdev
Keywords : kbADO kbDatabase kbScript kbVisID100 kbVisID100bug kbGrpASP kbGrpMDAC kbDSupport kbADO210sp2 |
Last Reviewed: November 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |