Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 9th, 2007, 09:22 AM
Registered User
 
Join Date: Jul 2007
Posts: 9
Thanks: 6
Thanked 0 Times in 0 Posts
Default Table to Table Update

Here's my problem
Table "a" has three fields Seqno, Name, Phone.
Table "b" has three fields Seqno, Name, Phone.

I'm trying to link the tables based on "Seqno" (Relationship).
Than replace "a" Name and Phone with "b" Name and Phone.

I'm from dBase and tring to get the feel of Access 2007. With dBase it would have been a relationship followed by a replace.

Hope for some help.

Thanks
Bob


Bob
 
Old July 10th, 2007, 02:41 AM
Authorized User
 
Join Date: May 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Ashfaque
Default

You need an update query to perform this task. I have an example here
I have updated my Product_Master table in the same way you look for.

UPDATE Product_Master INNER JOIN T_Group_Master ON Product_Master.GroupCode = T_Group_Master.GroupCode SET Product_Master.GroupName = T_Group_Master.GroupName;

In above example, I filled all the group names of Product_Master table from T_Group_Master where the key field (GroupCode in both tbl) are same.

You may replace table and field names with your.

Hope this helps

Ashfaque






Similar Threads
Thread Thread Starter Forum Replies Last Post
update table from another db table timbal25 SQL Server 2005 3 January 19th, 2008 06:47 AM
Update one table to another table using DTS in SQL Printmaker SQL Language 0 July 24th, 2007 07:17 AM
How to Update one table with other table data? ramk_1978 SQL Language 2 May 26th, 2006 12:51 AM
update table with an ID Num from different table scoobie PHP How-To 12 January 25th, 2005 12:28 PM
Update parent table with the sum of child table gbrown SQL Language 2 November 9th, 2004 07:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.