Advertisement
Guest User

Untitled

a guest
May 18th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Public cn As ADODB.Connection
  2. Public rs As ADODB.Recordset
  3. Sub main()
  4. Set cn = New ADODB.Connection
  5. cn.ConnectionString = "Driver ={Mysql ODBC 3.51 Driver}; Server=loclhost; port=3306; database=just; user=root; password=0000; option=3;"
  6. cn.Open
  7. If cn.State = adStateOpen Then
  8. MsgBox "Connected"
  9. End If
  10. Form1.Show
  11.  
  12. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement