|
You cannot use joins in an update query. The
query won't know which table to update, among other reasons.
I think you can accomplish what you want with a
subquery. For example, something like this (you may have to play a little
with the syntax -- I haven't tested it):
UPDATE tbl_CustomerHistory WHERE (SELECT qry_CustomersWithHighestAgeRank.Customer FROM tbl_CustomerHistory LEFT JOIN qry_CustomersWithHighestAgeRank
ON tbl_CustomerHistory.Customer
= qry_CustomersWithHighestAgeRank.Customer) Also, I believe that the subquery must return
only 1 row.
HTH,
Toby
Please zip all files prior to uploading to Files section. ---- LSpots keywords ?> ---- HM ADS ?> YAHOO! GROUPS LINKS
|
Title: Update query problems
- [AccessDevelopers] Update query problems David Pearson
- Toby Bierly
