I have created a hidden form that opens with an autoexec macro when I open my database. It does some startup routines that run fine. However, I also need to do some clean up on shutdown so I have hooked some code on the 'On Close' event of the hidden form. When I exit Access 2007 SP2 from the...