Dim db As New Connection
'Dim tbpro As New ADODB.Recordset
'Dim db As Database
Dim tbpro As Recordset
Private Sub Command1_Click()
rsMyRecordset.Open (App.Path & "\" & "super.mdb")
rsmyreco
End Sub
Private Sub Form_Load()
'db.ConnectionString = (App.Path & "\" & "super.mdb")
'tbpro.ActiveConnection "table1", db, adOpenDynamic, adLockOptimistic
db.Open (App.Path & "super.mdb")
Set tbpro = db.OpenRecordset("table1")
End Sub
The above code can't work, It will leave an error message "Data source name is too large".
Please tell me how do i can solve it?