Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 February 25th, 2005, 08:52 AM
Authorized User
 
Join Date: Dec 2004
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default Inserting a value from one table to another

Hi

I have two tables of exactly the same structure. Table 1 contains 500 lines of data. Table 2 contains one line of data. The two tables have exactly the same primary key ie EENO. I am trying to overwrite the line from table 2 into the corresponding line from table 1 ie the line with the same EENO. I want to keep the other 499 lines as well. Does anyone know the bast way to do this?

Cheers
Tony
__________________
Cheers
Tony
 
Old February 25th, 2005, 08:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Use an update query where you join table 1 and table 2 by EENO.

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting new field to a table elygp SQL Language 3 March 19th, 2008 12:03 PM
inserting installments in a query or table fskilnik SQL Language 0 December 14th, 2005 06:15 PM
inserting data into a table NovieProgrammer Access VBA 7 April 7th, 2005 11:26 PM
copying from table 1 inserting in table 2 gilgalbiblewheel Java GUI 0 September 15th, 2004 03:40 PM
Inserting table in RichTextbox agarwalmk VS.NET 2002/2003 0 February 11th, 2004 05:16 PM





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