What do you mean by they are not executing?
It is an if/else statement, so one of them HAS to execute. The only way it wouldn't execute is if the rset.next() if statement a few lines before...