- Local time
- Today, 19:06
- Joined
- Sep 12, 2006
- Messages
- 16,025
I have pinned this down to the use of a dummy recordset (I thought it related to mousehook ,but it isnt that)
I was setting a permanent link to a dummy table in the backend, to keep the connection open, within my switchboard
dummy rst is a public, global variable
Set dummyrst = currentdb.OpenRecordset("tbldummy")
I dispose of this in the switchboard exit event with
dummyrst.Close
(if i try to add this code to the switchboard close, or unload event, it fails wiith an "object variable not set" error
BUT when I try to close Access, it hangs, as an empty app in the windows task bar, and shows as a process runnnig at 80% odd in task manager.
I have now commented out, both the open and close code, and it now closes down normally.
Any suggestions regarding the right way to close the app.
--------------
thought again, and sorted it
it just needed a
set dummyrst=nothing
funny, i've been a few months not getting to the bottom of this.
I was setting a permanent link to a dummy table in the backend, to keep the connection open, within my switchboard
dummy rst is a public, global variable
Set dummyrst = currentdb.OpenRecordset("tbldummy")
I dispose of this in the switchboard exit event with
dummyrst.Close
(if i try to add this code to the switchboard close, or unload event, it fails wiith an "object variable not set" error
BUT when I try to close Access, it hangs, as an empty app in the windows task bar, and shows as a process runnnig at 80% odd in task manager.
I have now commented out, both the open and close code, and it now closes down normally.
Any suggestions regarding the right way to close the app.
--------------
thought again, and sorted it
it just needed a
set dummyrst=nothing
funny, i've been a few months not getting to the bottom of this.
Last edited: