Thanks for all your help, I got it to work, but with one problem. If you type in the code then take out the code the number does not reduce. Is it possible to make it reduce because there will be mistakes made when entering the code.Thank you for all your help again