Re: Help with an update query??

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Tue, 24 Oct 2006 14:29:02 -0700, T Miller
<TMiller@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I have a main table that I need to add information from another table. There
is a common field in both tables and I want to update a field name in the
main file from the other table. i.e.

common field: Ven_id

Main Table: ven_name
Second Table: ven_name

I want to take all of the names from the Second Table and add them to the
Main Table. I have tried an update query but nothing was done, so I
obviously did it wrong. help.....

Three questions:

Ok, you did something wrong. What did you do? We can't help you fix it
unless you tell us what you did! Could you post the SQL view of the
update query?

Secondly: do you really want an Update query (which updates values in
existing records) or an Append query (which would add new names which
do not exist in the Main Table)?

Most important: WHY would you want to store Ven_Name redundantly in
this main table? You can (and should) link the two tables by Ven_ID to
display the name; there is rarely any good reason to copy the name
into a second table!

John W. Vinson[MVP]


.



Relevant Pages

  • Re: update
    ... Do you have a common Field that uniquely identifies Record in both Tables? ... you can use and Update Query like:: ... with almost equal values except the entry for one field ... > Patrick Stubbin ...
    (microsoft.public.access.queries)
  • Re: Help with an update query??
    ... Jeff Boyce ... Microsoft Office/Access MVP ... is a common field in both tables and I want to update a field name in the ... I have tried an update query but nothing was done, ...
    (microsoft.public.access.queries)
  • Update query
    ... I'm trying to write an update query by joining two tables ... together on a common field and updating the field in one ...
    (microsoft.public.sqlserver.datamining)
  • Update query
    ... I'm trying to write an update query by joining two tables ... together on a common field and updating the field in one ...
    (microsoft.public.sqlserver.msde)
  • Update query
    ... I'm trying to write an update query by joining two tables ... together on a common field and updating the field in one ...
    (microsoft.public.project)