 |
| 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
|
|
|
|

February 25th, 2009, 12:53 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2005
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

February 27th, 2009, 11:47 AM
|
|
Friend of Wrox
|
|
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
|
|
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
|
|

February 27th, 2009, 11:47 AM
|
|
Friend of Wrox
|
|
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
|
|
That was my 3,000th post, btw. =)
__________________
mmcdonal
Look it up at: http://wrox.books24x7.com
|
|

March 1st, 2009, 12:23 AM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 38
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
3,000 posts - congrats!
Quote:
Originally Posted by mmcdonal
That was my 3,000th post, btw. =)
|
Good job mmcdonal!
|
|

March 1st, 2009, 12:24 AM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 38
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
Quote:
Originally Posted by Brendan Bartley
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?
|
|

March 6th, 2009, 02:34 PM
|
|
Registered User
|
|
Join Date: Nov 2008
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|
|

March 6th, 2009, 07:19 PM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 38
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
Quote:
Originally Posted by prema
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
|
|
 |