PRB: Error Assigning Non-Opened Recordset to ADODC (190410)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
This article was previously published under Q190410 SYMPTOMS
When you attempt to set an ActiveX Data Objects (ADO) Data Control's
Recordset object to a previously dimensioned ADO Recordset the following
error is returned:
Run-time error '3704':
The operation requested by the application is not allowed if the object
is closed.
CAUSE
This error occurs when the recordset has not been opened yet.
RESOLUTION
The user may either open the recordset prior to assigning it to the ADO
Data Control (ADODC), or use the ADODC to create the recordset.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 3/2/2005 |
---|
Keywords: | kbCtrl kbDatabase kbDataBinding kbprb KB190410 |
---|
|