DAO & SQL Server
Set GetCurrentDatabase = Workspaces(0).OpenDatabase("", dbDriverNoPrompt, ro, lcstrConnectionString & ";DSN=FactoryPulse")
Even If I Close down the SQL Server, the above statement does not gives an error. I get Error when i try to execute the OpenRecordset method on this database.
It seems ODBC is going some kind of caching or something. Pls tell me how can i write code that returns error on OpenDatabase statement.
|