If you want to connect your DATABASE throw DSN. It is required that you first made DSN by ODBC in Control Panel.
Another way to connect to DATABASE in
VB is to Add Reference of Microsoft ADODC in Your Project.
After it you can make a Connection like
Dim cn as new ADODB.Connection
Dim rs as new ADODB.Recordset 'then make a Record set.
cn.open "Driver={MYSQL ODBC 3.51 Driver};Server=localhost;
Port=3306;Option=131072;Stmt=;Database=NameOfDatab ase;
Uid=root;Pwd=;"
set rs=cn.execute("Select id,name from employee")
At the Place of Select you can write your Query and now
Recordset rs will indicate your Query's result.