Hi Barry
You sure its an "if"? If its an "if" condition it checks it and depending on either true or false it comes out of condition.
Thread WILL NOT WAIT until record is unlocked.
It should not be a condition, but a loop which waits until record is locked. So you might want to try it using "while".
Good Luck
[ July 12, 2004: Message edited by: Satish Avadhanam ]