ACC2000: Properties Are Missing from Queries After You Access TableDef Object with ADOX Catalog Object (256101)
The information in this article applies to:
This article was previously published under Q256101 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
After you run ActiveX Extensibility Objects (ADOX) code referring to a Table object in a Microsoft Access database, you notice that the field properties in one or more queries in the database are missing.
CAUSE
This problem may occur when the following conditions are true:
- The Name AutoCorrect feature is turned on (this feature is turned on by default).
- In Visual Basic for Applications, you access a Table Object with the ADOX Catalog object.
This causes the fields of all the queries that contain the table that you referred to with the TableDef object to lose custom property settings, such as the Format, the Input Mask, the Description, and the Caption property settings.
RESOLUTIONIMPORTANT: If you have Access 2000 running on Microsoft Windows 2000, Microsoft Office 2000 Service Release 1 (SR-1) will not correct this problem.
To resolve this problem on Windows 2000, obtain Windows 2000 Service Pack 1 (Win 2000 SP1). For information on downloading SP1 or obtaining the Windows 2000 SP1 CD, please visit the following Microsoft Web site:
To resolve this problem on non-Windows 2000-based computers, obtain Microsoft Office 2000 Service Release 1 (SR-1).
To resolve this problem, obtain Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a).
To obtain SR-1/SR-1a, click the article number below to view the article in the Microsoft Knowledge Base:
245025 OFF2000: How to Obtain and Install Microsoft Office 2000 Service Release 1/1a (SR-1/SR-1a)
To temporarily work around this problem, before you run the ADOX code that refers to a table with the Catalog object, turn off Name AutoCorrect. To do so, follow these steps:
- On the Tools menu, click Options.
- In the Options dialog box, click the General tab.
- Ensure that the Track name AutoCorrect Info check box is not selected, and then click OK.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
This problem was corrected in Microsoft Office 2000 SR-1/SR-1a.
REFERENCESFor additional information about a similar issue involving DAO code affecting queries in an Access database, click the article number below
to view the article in the Microsoft Knowledge Base:
247488 ACC2000: Column Properties in Query May Disappear After You Run DAO Code or a Wizard
Modification Type: | Major | Last Reviewed: | 12/16/2002 |
---|
Keywords: | kbbug kbdta KB256101 |
---|
|