Thanks I tried what you suggested but that didn't work as well I think the problem might be maybe I should do the check somewhere else? Do you have any suggestion where I can do this check? Or do you think it is the correct place and the correct code? Maybe it needs different code. Thanks again.