Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ACC2000: Column Alias Names Are Missing After You Make Changes to an Update Query


View products that this article applies to.

This article was previously published under Q251312
Moderate: Requires basic macro, coding, and interoperability skills.

This article applies only to a Microsoft Access database (.mdb).

↑ Back to the top


Symptoms

You notice that an update query that previously contained one or more column alias names now has none.

↑ Back to the top


Cause

This can happen only if all the following conditions are true:

It is an update query.
The query contains two or more tables that have relationships.
You make a change in Design view of the query.

↑ Back to the top


Resolution

Currently there is no resolution or workaround for this issue.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

Steps to Reproduce the Behavior

1.Create a new Access database.
2.Create a new table named Table1 with the following specifications:
   Table: Table1
   -----------------
   Field Name: IDNUM
   Data Type: Number

   Table Properties: Table1
   ------------------------
   PrimaryKey: IDNUM
					
3.Save and close the Table1 table. For this demonstration, you do not need to enter any data in the Table1 table.
4.Create a second table named Table2 with the following specifications:
   Table: Table2
   ---------------------------
   Field Name: IDNUM
   Data Type: Number
   Indexed: Yes (No Duplicates)

   Field Name: FirstName
   Data Type: Text

   Field Name: LastName
   Data Type: Text

   Table Properties: Table2
   ------------------------
   PrimaryKey: IDNUM
					
5.Save and close the Table2 table. You do not need to enter any data in Table2.
6.On the Insert menu, click Query.
7.In the New Query dialog box, click Design View, and then click OK.
8.Click Close in the Show Table dialog box without adding any tables.
9.On the View menu, click SQL View.
10. Type or paste the following Select statement in SQL view:
UPDATE Table1 INNER JOIN Table2 ON Table1.idnum = Table2.idnum SET Table2.firstname = "smith";
11.On the View menu, click Design View.
12.Save the query as Query1, and then close the query.
13.Reopen the Query1 query in Design view, and then add the alias Fname to the FirstName field. It should look as follows:
Fname: FirstName
14.Save and close the Query1 query.
15. Reopen the Query1 query. Note that the alias Fname has disappeared.

↑ Back to the top


References

For additional information about problems with alias names, click the article number below to view the article in the Microsoft Knowledge Base:
202859 ACC2000: Aliased Field Name in Query Displays Wrong Name

↑ Back to the top


Keywords: KB251312, kbnofix, kbbug

↑ Back to the top

Article Info
Article ID : 251312
Revision : 2
Created on : 7/16/2004
Published on : 7/16/2004
Exists online : False
Views : 298