Article ID: 272001 - Last Review: October 16, 2002 - Revision: 1.0 BUG: Attributes Property of ADOX Columns Collection May Cause Append Method to Fail
This article was previously published under Q272001 On This PageSYMPTOMS
Attempting to set the Attributes property of a Microsoft ActiveX Data Object (ADOX) Column object to anything other than 0 may cause the Append method of the Tables collection to fail with the following error message:
Run-time error '3265': Item cannot be found in the collection corresponding to the requested name or ordinal. CAUSE
This is caused by a bug in the Microsoft ActiveX Data Objects Extensions for Data Definition Language (DDL) and Security, which prevents the setting of the Attributes property of a Column to anything but 0 (where a value of 0 means neither adColFixed nor adColNullable, the two possible values for this property) when other properties of the Column object are also set.
RESOLUTION
If you need to create a nullable or fixed length column, you must create the table through some mechanism other than ADOX, such as DDL SQL statements (CREATE TABLE, for example).
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. MORE INFORMATION
The error messages occurs only when you attempt to set one or more properties on a Column object and then also try to set the Attributes property to either adColFixed (1) or adColNullable (2). Steps to Reproduce Behavior
REFERENCESFor additional information on the limitations of ADOX, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
198534
(http://support.microsoft.com/kb/198534/EN-US/
)
ADOX Readme File Included with ADO 2.1 Components
271483
(http://support.microsoft.com/kb/271483/EN-US/
)
Design features of ADOX
APPLIES TO
| Other Resources Other Support Sites
CommunityArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

Back to the top