comnetlimited
Technical User
Here are the following codes in DAO:
'Declare Database and recordset
Dim dbsNFL As Database
Dim rstAddBook As Recordset
'Open Database and Recordset
Private Sub Form_Load()
Set dbsNFL = CurrentDb
Set rstAddBook = dbsNFL.OpenRecordset("ADDBOOK", dbOpenDynaset)
End sub
What would the above code be in ADO.
Please help,...because exactly the code above and it gives me an run time error of "Type Mismatch"
Cheers....
'Declare Database and recordset
Dim dbsNFL As Database
Dim rstAddBook As Recordset
'Open Database and Recordset
Private Sub Form_Load()
Set dbsNFL = CurrentDb
Set rstAddBook = dbsNFL.OpenRecordset("ADDBOOK", dbOpenDynaset)
End sub
What would the above code be in ADO.
Please help,...because exactly the code above and it gives me an run time error of "Type Mismatch"
Cheers....