C#'s "null" should be replaced with "Nothing" in Visual Basic.
But if you concerned with terminating the connection you should really
call connection.Close() or connection.Dispose() or just wrap the
connection object in a using block
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.