PRB: Error 3265 When You Access Properties Collection (201826)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
This article was previously published under Q201826 SYMPTOMS
When you use ActiveX Data Objects Extensions for Data Definition Language and Security (ADOX) and try to access properties in the Properties Collection, you may receive the following error message:
Run time error '3265':
ADO could not find the object in the collection corresponding to the
name or ordinal reference requested by the application.
The following error is returned from ADO 2.5 and later:
Run-time error '3265':
Item cannot be found in the collection corresponding to the requested name or ordinal.
CAUSE
The object's ParentCatalog property was not set to a valid Catalog object,
-or-
the ADO Connection object associated with the Parent Catalog may be invalid.
RESOLUTION
Set the object's ParentCatalog property to a valid Catalog object,
-or-
make sure the Parent Catalog is associated with a valid ADO Connection Object.
STATUS
This behavior is by design.
REFERENCES
The following is from Help under the ParentCatalog Property from the Data Acces Software Development Kit for use with Microsoft Data Access Components:
Some data providers allow provider-specific property values to be
written only at creation (when a table or column is appended to its Catalog collection). To access these properties before appending these
objects to a Catalog, specify the Catalog in the ParentCatalog
property first.
Modification Type: | Major | Last Reviewed: | 8/23/2001 |
---|
Keywords: | kbDatabase kbDSupport kbprb KB201826 |
---|
|