I have a control block with a control item that allows the user to enter a concealed password. If the user enters the correct password he enters another block, if not he is allowed 3 chances to enter the password, if the third chance passes without entering the correct password, he gets access denied message and and the application gets closed. The problem is how to use loops to do this. I used both for loop and loop method but they display the access denied message three times consequently instead without giving me chance to enterpassword for the second time. If possible, attach a sample code. Thanx