I need to to an update query that involves three tables: table Dealer
needs to be updated with data from table Personnel and table Title.
Dealer is joined to Personnel where Dealer.Dealer_Code =
Personnel.so_cd
Personnel is linked to Title by Personnel.name_id = Title.name_id
I need to update fields Principal_First_Name, Principal_Last_Name, and
Company_Email in Dealer from FirstName, LastName, and
InternetEmailAddr in Personnel where Title in PersonnelTitle = 'DM" or
"Dealer Principal".
I'm trying to do an update query in Access, and here is the SQL that
is generated:
UPDATE dbo_TABLE_Dealer INNER JOIN (Personnel INNER JOIN
PersonnelTitle ON Personnel.name_id = PersonnelTitle.name_id) ON
Dealer.Dealer_Code = Personnel.so_cd SET Dealer.Principal_Last_Name =
Personnel.LastName, Dealer.Principal_First_Name = Personnel.FirstName,
Dealer.Company_Email = Personnel.InternetEmailAddr
WHERE (((PersonnelTitle.Title) In ("DP","Dealer Principal")));
However, when I try to run it, I get a message that says "Operation
must use an updateable query". How do I need to change the query to
do what I need to do?
Thanks.
Steve