I have developed a dinky dialog form to allow users to select a resident by location, alphbetically, etc. The trouble is I have to have several copies of it with different names relating to the forms with which it is used. It could be called either from the main menu, to allw selection before the main form is opened, or it can be called from the form and returns there with the next selection.
As it currently stands the code in the dialog form checks for the presence of the main form and opens it if not open; then it filters the main form.
What i’d like to do is for the dialog form to be used in all circumstances, but:
1) How do I tell it what form called it so that it can return there?
2) If called from the main menu, how do I tell it what form to go to when finished?
I hope I’ve explained this sufficiently