I use the following code attached to a button to close forms for a program I am writing: "DoCmd.close acForm, "NAMEOFFORM"". To simplify my work I want to make a list of forms , prepare a DoCmd.close acForm for each one, then paste this entire list into the onerror section for several of my code windows. In some cases a form on the list may not be open. Am I asking for trouble by using code to close a form when it is not actually open?
Thanks for the help.
Ron C