belovedcej
Programmer
I have a main screen which I may be opening from any number of locations.
I want to close whatever I am on after opening the main screen without having to code an individual button. Instead, I'm just using a menu button with a macro telling it to run a function which opens the main form and close the other.
My thought was to simply loop through each form in the system and do an "if is open, close".
My problem is that since this is an adp file, I don't have a system table showing me all the forms in my project. How can I loop through all the forms in this case?
On the other hand, if there is a better solution, I am all ears.
I want to close whatever I am on after opening the main screen without having to code an individual button. Instead, I'm just using a menu button with a macro telling it to run a function which opens the main form and close the other.
My thought was to simply loop through each form in the system and do an "if is open, close".
My problem is that since this is an adp file, I don't have a system table showing me all the forms in my project. How can I loop through all the forms in this case?
On the other hand, if there is a better solution, I am all ears.