Have you tried taking out the lines connecting to your database and just using vb's method to connect to the database? Since you are calling vb scripts in your page, you are using two different methods to connect to the database and that may be causing problems.