09-08-2012, 10:08 PM
This is because somewhere in your code you must specify that
[code2=vbnet]da.Connection = MySQLConn[/code2]
However, this will also throw an error, so you must also change
this
[code2=vbnet]Dim MySQLConn As MySqlConnection[/code2]
to this:
[code2=vbnet]Dim MySQLConn As MySqlConnection = New MySqlConnection[/code2]
[code2=vbnet]da.Connection = MySQLConn[/code2]
However, this will also throw an error, so you must also change
this
[code2=vbnet]Dim MySQLConn As MySqlConnection[/code2]
to this:
[code2=vbnet]Dim MySQLConn As MySqlConnection = New MySqlConnection[/code2]