I get the error msg "Object variable or With block variable not set" when
closing the "persistent " recordset I opened when the application opened.
I have the rs variable declared in the declarations section of a module:
Public rsAlwaysOpen As DAO.Recordset
Then, when the switchboard form loads I set the variable:
Dim dbs As DAO.Database
Set dbs = CurrentDb
Set rsAlwaysOpen = dbs.OpenRecords et("tblGlobals" )
Presumably, the rs will now stay open until I close it in the Unload or Close
event of the switchboard form, but, instead, I get the above error and the rs
appears to be closed (I can't get any values in the Immediate window).
It's only a problem if I open the db with the shift key. Users don't get any
such msgs.
Bill
--
Message posted via AccessMonster.c om
Comment