 <p>Ok I don't know for your error but you're handling exception the wrong way. Here is how you should do it (not to mention the SQL injection here) :</p> <pre><code>Try ' Your code here Catch e as Exception MsgBox.show(e.Message, "An Error occured") End Try </code></pre> <p>NB : I post this here because it's too lon g for a comment...</p>