PRB: Data Bindings Are Lost When ADO Recordset Is Closed (192383)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1 SP2
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
This article was previously published under Q192383 SYMPTOMS
If you have controls that are bound to a closed recordset and you then open
(or re-open) that recordset, the controls do not display data from the
recordset. Bound TextBox controls display what was in the TextBox before
the recordset was closed. Bound Grid controls appear blank.
RESOLUTION
After you have opened (or re-opened) your recordset, you must re-bind your
controls in order to display data from that recordset.
- or -
You can use the Requery method on the recordset instead of closing and re-
opening the recordset without needing to re-bind your controls.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 3/2/2005 |
---|
Keywords: | kbcode kbDataBinding kbDSupport kbprb KB192383 |
---|
|