It sounds like you've got multiple tables that could probably better track
info without duplication if the "winner rating" and "loser rating" were both
kept in the same table under two separate columns, instead of two separate
tables with an identically named column, Rating.
However, one could try the following two update queries:
UPDATE Player INNER JOIN NEWRATINGS ON Player.PID = NEWRATINGS.PID
SET Rating = WinnerNewRating;
.. . . and . . .
UPDATE Player_1 INNER JOIN NEWRATINGS ON Player_1.PID = NEWRATINGS.PID
SET Rating = LoserNewRating;
.. . . where Player and Player_1 are the names of the tables to be updated,
NEWRATINGS is the name of the query where the WinnerNewRating and
LoserNewRating columns are calculated, and PID is the primary key for the
Player and Player_1 tables.
And if you kept the winning and losing data all in one table, the single
update query would be:
UPDATE Player INNER JOIN NEWRATINGS ON Player.PID = NEWRATINGS.PID
SET WinnerRating = WinnerNewRating, LoserRating = LoserNewRating;
.. . . where WinnerRating is the player's rating as a winner and LoserRating
is the same player's rating as a loser.
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips.
(Please remove ZERO_SPAM from my reply E-mail address so that a message will
be forwarded to me.)
- - -
If my answer has helped you, please sign in and answer yes to the question
"Did this post answer your question?" at the bottom of the message, which
adds your question and the answers to the database of answers. Remember that
questions answered the quickest are often from those who have a history of
rewarding the contributors who have taken the time to answer questions
correctly.