joelflorendo
Technical User
I'm using the code here to hook my form so I can minimize it to the system tray. (
I want to quit the access application when the form is closed so I'm calling the unhook function from the onclose event of the form and then call Application.Quit. The odd thing is that Access isn't cleaning up the ldb file when I do this. If I separate the two processes by unhooking the form and closing the form from two different buttons, the ldb file goes away, but not if I try to call the unhook and quit in the same sub.
Even more strange is that I can delete the ldb file without any problems. So the connection is being closed but it's just not cleaning up the ldb file.
Any ideas?
I want to quit the access application when the form is closed so I'm calling the unhook function from the onclose event of the form and then call Application.Quit. The odd thing is that Access isn't cleaning up the ldb file when I do this. If I separate the two processes by unhooking the form and closing the form from two different buttons, the ldb file goes away, but not if I try to call the unhook and quit in the same sub.
Even more strange is that I can delete the ldb file without any problems. So the connection is being closed but it's just not cleaning up the ldb file.
Any ideas?