I've two databases, one created with Access 2000 with Jet 4.0 Engine and one Upsized to Access 2000 ADP file with a SQL Server engine. I'm trying to use DAO since the original creates many recordsets using DAO but code that works on one will give me a 91 error, 'Object Variable or With Blcok Variable Not Set'. It stops on code the uses the CurrentDb intrinsic object to instantiate a recordset. Using the debug/immediate window to determine the cause led me to discover that CurrentDb in nothing in the SQL Server .adp application that causes the problem. Output from the debugger:
?CurrentDb Is Nothing
True
While searching in the help files I discovered that Access 2000 sets a reference to the DAO 3.6 Object Library automatically but it needed to be set manually for the ADP, which I did. I still get the error and was unsuccessful in my search of the Microsoft Knowledgebase.
Anybody experienced and resolved this? What is my answer? I hope you don't say to rewrite the application using ADO because that would be a significant effort.
I appreciate your assistance.
-------------------------------------
scking@arinc.com
Try to resolve problems independently
Then seek help among peers or experts
But TEST recommended solutions
-------------------------------------
?CurrentDb Is Nothing
True
While searching in the help files I discovered that Access 2000 sets a reference to the DAO 3.6 Object Library automatically but it needed to be set manually for the ADP, which I did. I still get the error and was unsuccessful in my search of the Microsoft Knowledgebase.
Anybody experienced and resolved this? What is my answer? I hope you don't say to rewrite the application using ADO because that would be a significant effort.
I appreciate your assistance.
-------------------------------------
scking@arinc.com
Try to resolve problems independently
Then seek help among peers or experts
But TEST recommended solutions
-------------------------------------