This code helps solving the serial number problem in a multi user environment, where several users are attempting to take the same number.
It depends on keeping the number in a separate table and then opening it one at a time with the "deny read" permisson.
One User will be allowed in while...