Ah, I see the problem. Try this connectino code instead. You don't have to use the same connection variables, but the syntax needs to be the same
VB Code:
  1. Dim con As ADODB.Connection
  2. Dim ConnString As String
  3.  
  4. ConnString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
  5.         "Data Source=c:\db1.mdb;" & _
  6.         "Persist Security Info=False"
  7.  
  8. Set con = New ADODB.Connection
  9. con.ConnectionString = ConnString
  10. con.Open ConnString
You have to declare them before you use them. Using New on a variable that has not yet been declared will result in the error that you received.