Hi! Here is what I am trying to accomplish:
I have a query (Main_Query) as a record source for multiple reports. One of the fields on this query is Activity_Dt. One of the reports is Activity_Report, and users generally run this based on a specified activity date range.
Currently, the Activity_Report can be run from a form called Menu_One. I simply added boxes to the form named "RptStartDt" and "RptEndDt". Then I added a report filter: [Activity_Dt] Between [Forms]![Menu_one]![RptStartDt] And[Forms]![Menu_one]![RptEndDt]
Now I want users to be able to run the report from a second form as well(Menu_Two). When users run the report from Menu_Two, the Menu_One form may not be open (thus, they get prompted for parameters).
What's the best way to code the report so it is looking at the dates/parameter on whatever form happens to be open? Then I could just add a [RptStartDt] box to the second form as well. I'm not a programmer, so don't know if there is a standard reference to the "Open" form vs. a specific form.
Note: I don't want to have pop-up boxes prompt the user to enter the dates. Nor do I want to add the parameter to the query since the query is also a source for other reports that should not be filtered by date.
Any advice is greatly appreciated!
I have a query (Main_Query) as a record source for multiple reports. One of the fields on this query is Activity_Dt. One of the reports is Activity_Report, and users generally run this based on a specified activity date range.
Currently, the Activity_Report can be run from a form called Menu_One. I simply added boxes to the form named "RptStartDt" and "RptEndDt". Then I added a report filter: [Activity_Dt] Between [Forms]![Menu_one]![RptStartDt] And[Forms]![Menu_one]![RptEndDt]
Now I want users to be able to run the report from a second form as well(Menu_Two). When users run the report from Menu_Two, the Menu_One form may not be open (thus, they get prompted for parameters).
What's the best way to code the report so it is looking at the dates/parameter on whatever form happens to be open? Then I could just add a [RptStartDt] box to the second form as well. I'm not a programmer, so don't know if there is a standard reference to the "Open" form vs. a specific form.
Note: I don't want to have pop-up boxes prompt the user to enter the dates. Nor do I want to add the parameter to the query since the query is also a source for other reports that should not be filtered by date.
Any advice is greatly appreciated!