Not sure I'm following exactly what you want to do, but it sounds like you could still use the code I posted earlier. Inside the While loop, just before the UPDATE statement add code to find the "word" you want in your words table (select it into a program variable) and then use the "word" you retrieved in the final update statement.
James.