Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
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 February 25th, 2009, 12:53 PM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Default Updating one table to another table

Hello all again
I need that when a user inputs details in a form that is also updates a column in another un-related table.
I have tried using the update query but this keeps updating the same information. I only need to update the current detail.

thanks
__________________
Brendan Bartley
 
Old February 27th, 2009, 11:47 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Do you mean update, or insert, or both? How are you selecting records between the tables? Can you post the tables with their columns, which field the user is updating in one table, and which field needs to be updated in the other table?
__________________
mmcdonal

Look it up at: http://wrox.books24x7.com
 
Old February 27th, 2009, 11:47 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

That was my 3,000th post, btw. =)
__________________
mmcdonal

Look it up at: http://wrox.books24x7.com
 
Old March 1st, 2009, 12:23 AM
Authorized User
 
Join Date: Jul 2008
Posts: 38
Thanks: 1
Thanked 2 Times in 2 Posts
Default 3,000 posts - congrats!

Quote:
Originally Posted by mmcdonal View Post
That was my 3,000th post, btw. =)
Good job mmcdonal!
__________________
Thanks,

Bob Larson
Access MVP (2008-2010, 2011)
Free Access tutorials, samples, tools
 
Old March 1st, 2009, 12:24 AM
Authorized User
 
Join Date: Jul 2008
Posts: 38
Thanks: 1
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by Brendan Bartley View Post
Hello all again
I need that when a user inputs details in a form that is also updates a column in another un-related table.
I have tried using the update query but this keeps updating the same information. I only need to update the current detail.

thanks
Can you elaborate further? What is this other column and why does it need updating when a user puts in the data?
__________________
Thanks,

Bob Larson
Access MVP (2008-2010, 2011)
Free Access tutorials, samples, tools
 
Old March 6th, 2009, 02:34 PM
Registered User
 
Join Date: Nov 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you tried making the field in the table you want to update a lookup field and having the source be the field that the form is writing to?
 
Old March 6th, 2009, 07:19 PM
Authorized User
 
Join Date: Jul 2008
Posts: 38
Thanks: 1
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by prema View Post
Have you tried making the field in the table you want to update a lookup field and having the source be the field that the form is writing to?
Lookup fields at table level - not a good idea. Here's why:
http://www.mvps.org/access/lookupfields.htm
__________________
Thanks,

Bob Larson
Access MVP (2008-2010, 2011)
Free Access tutorials, samples, tools





Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating one table with data from another table dirtdog22 Access VBA 1 January 21st, 2008 04:41 PM
Updating Table gregalb SQL Server 2000 1 June 2nd, 2007 04:39 PM
Updating table every now and then rtr1900 Classic ASP Databases 2 December 2nd, 2005 03:12 AM
Updating table Hudson40 Access VBA 6 March 23rd, 2005 12:07 PM
updating table markhardiman Classic ASP Databases 2 September 29th, 2004 12:35 PM





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