be executed even without calling it? <BR>When I find that RS.EOF then I call my sub routine where there is code to direct to the login page again.<BR>But the code inside the sub gets pulled up even when I am not calling the sub.<BR>How do I get around this? (hope i make sense)<BR>I need to exit that page when its rs.eof and only continue with rest of code when its not rs.eof. I have already tried response.redirect and other if statements.<BR><BR>I know my question is very beginner but pl. help.<BR><BR>Thanks<BR>Crystal.