ACC2000: Column Properties in Query May Disappear After You Run DAO Code or a Wizard (247488)
The information in this article applies to:
This article was previously published under Q247488 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
The user-defined properties that you set for all columns in a query may be deleted. If you are using Data Access Objects (DAO) code, the query does not return a value for the properties or uses the properties from the table that the query is based on.
You may also receive one or more of the following error messages when you run the query:
Invalid operation.
Property can be set only when the Field is part of a Recordset object's Fields collection.
Operation is not supported for this type of object.
Property not found.
CAUSE
This problem can occur when you have Name AutoCorrect enabled, and you do one of the following: - You use a wizard to create a query, a form, a report, or a data access page that is based on the query with user-defined properties.
-or-
-
-or-
You run DAO code that uses the properties of a column in a query with user-defined properties.
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)
Even though Office 2000 SR-1 corrects the problem of deleting user-defined
properties, the DAO code may not return the expected information. For example, if the table that your field comes from has text in the Description property, the code returns the table's description instead of the query's description.
To avoid this behavior, make the Name AutoCorrect command unavailable. To do so, follow these steps:
- On the Tools menu, click Options.
- In the Options dialog box, click the General tab.
- Click to clear the Track name AutoCorrect info check box.
- Click OK.
- Quit, and then restart Access.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 1.REFERENCESFor additional information about a similar issue involving ActiveX Data Objects affecting queries in an Access database, click the article number below
to view the article in the Microsoft Knowledge Base:
256101 ACC2000: Properties Are Missing from Queries After You Access TableDef Object with ADOX Catalog Object
Modification Type: | Major | Last Reviewed: | 12/14/2002 |
---|
Keywords: | kbbug kbdta kberrmsg kbWin2000PreSP1Fix kbWin2000sp1Fix KB247488 |
---|
|