What version of Access do you use? I am looking for this exact thing, but have been unable to find the solution on 2007. I have written code within the database that automatically closes access if you have been inactive for an hour, so I do not need to check for a .idb.