I am trying to connect to an Access 2000 database using code which was originally written for Access 97
The code is similar to
Dim DB As Database
Dim RS As Recordset
Set DB=DBEngine.Workspace(0).Databases(0)
Set RS=DB.OpenRecordset("SQL string",DB_OPEN_DYNASET)
I originally had an error "User-defined type not defined" on the Dim DB As Database line and overcame this be enabling the Microsoft DAO 3.6 Object Library.
I now get the error "Method or data member not found" on the
Set RS=DB.OpenRecordset("SQL string",DB_OPEN_DYNASET) line.
I guess there's another Reference that I need to enable/disable.
Does anyone know how I overcome this problem.
Thanks
The code is similar to
Dim DB As Database
Dim RS As Recordset
Set DB=DBEngine.Workspace(0).Databases(0)
Set RS=DB.OpenRecordset("SQL string",DB_OPEN_DYNASET)
I originally had an error "User-defined type not defined" on the Dim DB As Database line and overcame this be enabling the Microsoft DAO 3.6 Object Library.
I now get the error "Method or data member not found" on the
Set RS=DB.OpenRecordset("SQL string",DB_OPEN_DYNASET) line.
I guess there's another Reference that I need to enable/disable.
Does anyone know how I overcome this problem.
Thanks