Update Qry question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to to update 3 tables at once with a single field from a 4th
table is this possible?
 
Try something like:

UPDATE Table1 INNER JOIN Table2
ON Table1.ID = Table2.ID
SET Field1 = Table2.Field2
WHERE Field2 = 12343
 
ok here is my query
UPDATE Table1 INNER JOIN Table2 ON Table1.NameID = Table2.AdvantageID SET
Table1.Name = Table2.AdvantageName
WHERE (((Table1.Name)="Fruits"));
but when I run it it say 0 records therefore does not update the table2
Why?
 
yes I do, but what I want is get all the records in table1.name and
append/update table2.advantagename
 
Huh? I don't understand what you mean.

Can you give an example, with sample data?
 
The SQL specifies updating Table1, NOT Table2.

The Fields to be updated must be on the LHS of the assignment statement in
the SET clause.

Doug's example updates Table1 so you need re-structure it if you want to
update Table2.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top