ACC2000: Aliased Field Name in Query Displays Wrong NameID: Q202859
|
When you build a query in the query by example (QBE) grid and use an alias for a column name, the name that you specified in the alias is not displayed when you run the query. Instead, an unexpected field name is returned in Datasheet view.
If a field in the underlying table of your query uses the Caption property, the value specified in the Caption property is displayed as the field name for a column, regardless of whether you use an alias. This behavior is by design.
CAUTION: Following the steps in this example will modify the sample
database Northwind.mdb. You may want to back up the Northwind.mdb file
and perform these steps on a copy of the database.
MyContactName: ContactName
For more information about the Caption property, click Microsoft Access Help on the
Help menu, type "caption property" in the Office Assistant or the Answer Wizard,
and then click Search to view the topics returned.
Additional query words: OFF2000 prb
Keywords : kbdta QryOthr
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: July 15, 1999