>Thank you Naomi and Hilmar.
>
>You are both correct, your code is much better, but in any case rlock() is where the user get stuck.
Are you doing UNLOCK later in the code? You locked the record and keep it locked. Is it the intent?
If it's not broken, fix it until it is.
My Blog