A
AccessARS
I have managed to succesfully link a MySQL table through Access 2000 but when
I try to connet to update the table through VBA I get prompted to enter a
user ID and PW by the MySQL ODBC Driver. I would like to bypass this prompt
by openning the connection prior to running the updates but my code below
gives me an error on "oConn.Open" = [Microsoft][ODBC Driver Manager] Data
source name not found and no default driver specified;
CODE:
Option Compare Database
Const strMySQL As String = "ODBC;FILEDSN=C:\Documents and Settings\User1\My
Documents\rates.dsn;" & _
"Uid=******;" & _
"Pwd=*****"
Private Sub Form_Load()
Dim oConn As New ADODB.Connection
oConn.connectionString = strMySQL
oConn.ConnectionTimeout = 0
oConn.Open
....
I have searched the forums for several days with no luck. Any assistance
would be greatly appreciated.
I try to connet to update the table through VBA I get prompted to enter a
user ID and PW by the MySQL ODBC Driver. I would like to bypass this prompt
by openning the connection prior to running the updates but my code below
gives me an error on "oConn.Open" = [Microsoft][ODBC Driver Manager] Data
source name not found and no default driver specified;
CODE:
Option Compare Database
Const strMySQL As String = "ODBC;FILEDSN=C:\Documents and Settings\User1\My
Documents\rates.dsn;" & _
"Uid=******;" & _
"Pwd=*****"
Private Sub Form_Load()
Dim oConn As New ADODB.Connection
oConn.connectionString = strMySQL
oConn.ConnectionTimeout = 0
oConn.Open
....
I have searched the forums for several days with no luck. Any assistance
would be greatly appreciated.