i have a report that is called from one of two forms, this causes the criteria prompts from the unopened form to be displayed . i need to check which form is open and set parameters to solve my issue.
You can use CurrentProject.IsLoaded to find a stand-alone form. Or do you need to know if the form is open as a subform? That is possible too, but harder.
Cheers,
Mark