G
Guest
Hi,
I've upgraded my Access DB to 2007 (accdb format) and now my code in Excel
is saying that the database is an unrecognized format.
I'm using DAO 3.6 (in Excel) to allow Excel to control Access. I tried
loading Access 12 objects and putting that at the top in the references and
it didn't work. If I remove the reference to DAO 3.6 my code won't compile.
Heres a couple of lines of code:
Dim db As Database
Dim rs As Recordset
Set db = OpenDatabase(DBPath & DBFileName)
I'm using objects like database, recordset, movefirst. Do I need to prefix
the lines with something?
Can anyone guide me as to how to fix this problem?
Any help will be greatly appreciated
Thanks
Suzanne
I've upgraded my Access DB to 2007 (accdb format) and now my code in Excel
is saying that the database is an unrecognized format.
I'm using DAO 3.6 (in Excel) to allow Excel to control Access. I tried
loading Access 12 objects and putting that at the top in the references and
it didn't work. If I remove the reference to DAO 3.6 my code won't compile.
Heres a couple of lines of code:
Dim db As Database
Dim rs As Recordset
Set db = OpenDatabase(DBPath & DBFileName)
I'm using objects like database, recordset, movefirst. Do I need to prefix
the lines with something?
Can anyone guide me as to how to fix this problem?
Any help will be greatly appreciated
Thanks
Suzanne