Microsoft Knowledge Base Email Alertz

When you try to create an Update query that updates the values in one table with values from another table, the process cannot be completed because the source table disappears from the query grid.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 282391 - Last Review: November 5, 2003 - Revision: 3.0

ACC2002: Unable to Update Table with Values from Another Table

This article was previously published under Q282391
Advanced: Requires expert coding, interoperability, and multiuser skills.

This article applies only to a Microsoft Access project (.adp).

On This Page

SYMPTOMS

When you try to create an Update query that updates the values in one table with values from another table, the process cannot be completed because the source table disappears from the query grid.

RESOLUTION

To resolve this issue, bypass the graphical query designer and type the SQL statement manually; to do so, follow these steps:
  1. Open the sample project NorthwindCS.adp.
  2. Make two copies of the Shippers table: Ship1 and Ship2.
  3. Open Ship2 and modify the phone numbers in the Phone field.
  4. Click Queries, and then double-click Create Stored Procedure in Designer.
  5. On the View menu, point to Show Panes, and then click SQL.
  6. Type the following SQL syntax:
    UPDATE Ship1 
    SET Ship1.Phone = Ship2.Phone 
    FROM Ship1, Ship2 
    WHERE Ship1.ShipperID = Ship2.ShipperID
    					
  7. Save and run the stored procedure, and then open Ship1. Note that the Phone column has been updated with values from Ship2.

STATUS

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

MORE INFORMATION

Steps to Reproduce the Problem

  1. Open the sample project NorthwindCS.adp.
  2. Make two copies of the Shippers table: Ship1 and Ship2.
  3. Open Ship2 and modify the phone numbers in the Phone field.
  4. Click Queries, and then double-click Create Stored Procedure in Designer.
  5. Add both Ship1 and Ship2 to the grid.

    Note that they are correctly joined on ShipperID.
  6. Select the Phone field in Ship1 to add it to the field grid.
  7. On the Query menu, click Update Query.
  8. In the Update Table dialog box, select dbo.Ship1 as the table to update. Note that the Ship2 table disappears from the grid.

APPLIES TO
  • Microsoft Access 2002 Standard Edition
Keywords: 
kbbug kbnofix KB282391
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate