diddydustin
Programmer
Hey guys,
I have a main report "EMR_All_Report" that has three subreports-- EMR_Time_Report, EMR_UPSH, and EMR_Sheet_Report. I have a form that allows the end-user to select a date range, machine, or shift (for example) and then open the form based on that crieteria. Previously this worked fine because the reports would not subreports but opened directly. Now that I am using one main report with the reports as subreports within it, I cannot figure out how to open this report through DoCmd and have it display the correct results.
Here's the code I use to open the report then close the form:
DoCmd.OpenReport "EMR_All_Report", acViewPreview, , strWhere, , acWindowNormal
DoCmd.Close acForm, "Report Generator"
Any help would be appreciated! Thanks
diddydustin
I have a main report "EMR_All_Report" that has three subreports-- EMR_Time_Report, EMR_UPSH, and EMR_Sheet_Report. I have a form that allows the end-user to select a date range, machine, or shift (for example) and then open the form based on that crieteria. Previously this worked fine because the reports would not subreports but opened directly. Now that I am using one main report with the reports as subreports within it, I cannot figure out how to open this report through DoCmd and have it display the correct results.
Here's the code I use to open the report then close the form:
DoCmd.OpenReport "EMR_All_Report", acViewPreview, , strWhere, , acWindowNormal
DoCmd.Close acForm, "Report Generator"
Any help would be appreciated! Thanks
diddydustin