I am very naive at this. I have created a DSN and want to use it to update a table residing on the other machine. This is the code that I am using. It gives me the error object variable or with block variable not found.
This is the code:
Private Sub Test()
Dim rs As Recordset
Dim cn As New Connection
cn.Open "DSN=Testing;"
rs.Open "Insert_Errors", cn
rs.AddNew
rs!Name = "John Doe"
rs.Update
End Sub
Thanks.
This is the code:
Private Sub Test()
Dim rs As Recordset
Dim cn As New Connection
cn.Open "DSN=Testing;"
rs.Open "Insert_Errors", cn
rs.AddNew
rs!Name = "John Doe"
rs.Update
End Sub
Thanks.