icemonster
Registered User.
- Local time
- Today, 00:15
- Joined
- Jan 30, 2010
- Messages
- 502
so i have this connection settings each time i update, insert, delete something in my record though i realized when the application is placed in our LAN server i would have to change the user and password as well as host, is there a way or how would this be set each time the application starts? and checks whether the connection is valid?
Code:
Set cnx = New ADODB.Connection
With cnx
.Open "DRIVER={MySQL ODBC 3.51 Driver};" & _
"Server=myServerName;" & _
"Port=3306;" & _
"Option=16384;" & _
"Stmt=;" & _
"Database=mydatabaseName;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"
End With
Set cnx = Nothing