The online Access Developer Help for Access 2007 shows a "QueryClose Event". It is not an available event on forms in my Access 2007 application. Is this a real event in VBA or is this erroneous information?
It is exactly what I am looking for. It has two parameters. One is to Cancel the Close event and the other tells you what triggered the close (the X on the form, Your Code, etc.) I need to make code run on my form when the user closes it. It works fine in my code when they click my "Exit" command button but not if they close it with the X. I can probably figure out how to accomplish this but I am used to using the QueryClose event in VB6 as it is so convenient and would be really nice to have in VBA. Is there some setting that makes it available or something?
Thanks much,
Marty
It is exactly what I am looking for. It has two parameters. One is to Cancel the Close event and the other tells you what triggered the close (the X on the form, Your Code, etc.) I need to make code run on my form when the user closes it. It works fine in my code when they click my "Exit" command button but not if they close it with the X. I can probably figure out how to accomplish this but I am used to using the QueryClose event in VB6 as it is so convenient and would be really nice to have in VBA. Is there some setting that makes it available or something?
Thanks much,
Marty