petersJazz
Programmer
How do I initialize a connection with ADO. I have tried this:
Private Sub Form_Load()
Dim objRs As ADODB.Recordset
Dim strSQL As String
Dim strConnStrTest As String
Set objRs = New ADODB.Recordset
strSQL = "SELECT u.wName, count(*) " & _
"FROM Users u, Bugs b " & _
"WHERE u.wName = 'Peter Karlsson'"
strConnStrTest = "Provider=MYSQL;" & _
"Data Source=Projektplatsen;"
objRs.Open strSQL, strConnStrTest, adOpenForwardOnly, _
adLockReadOnly, adCmdText
End Sub
This will give me: Run-time error '3706' Provider connot be found. It may not be properly installed.
Private Sub Form_Load()
Dim objRs As ADODB.Recordset
Dim strSQL As String
Dim strConnStrTest As String
Set objRs = New ADODB.Recordset
strSQL = "SELECT u.wName, count(*) " & _
"FROM Users u, Bugs b " & _
"WHERE u.wName = 'Peter Karlsson'"
strConnStrTest = "Provider=MYSQL;" & _
"Data Source=Projektplatsen;"
objRs.Open strSQL, strConnStrTest, adOpenForwardOnly, _
adLockReadOnly, adCmdText
End Sub
This will give me: Run-time error '3706' Provider connot be found. It may not be properly installed.