Could you write it for example, please?Hi. You could try adding one more variable for the second report and then add one more OpenReport line to open the second report.
In your code, you have these:Could you write it for example, please?
Dim strReport As String
...
strReport = "rpt_Inspections"
...
DoCmd.OpenReport strReport, lngView, , strWhere
Dim strReport As String
[b]Dim strReport2 As String[/b]
...
strReport = "rpt_Inspections"
[b]strReport2 = "NameOfYourOtherReportHere"[/b]
...
DoCmd.OpenReport strReport, lngView, , strWhere
[b]DoCmd.OpenReport strReport2, lngView, , strWhere[/b]
Something goes wrong, arnelgp . It show me this:check the Click event of the button.
Something goes wrong, arnelgp . It show me this:
This is when I press button "Another Report"
I am not sure Is it possible to create a report like this - one report with Inspections and AnoterTask to filter them with filter form with only one button
I can not do it! I am trying but nothing :banghead::banghead::banghead:
=doPrintReport("rpt_AnotherTask")
Now it is works perfect, arnelgp!!!Thank you again!don't bang your head.
this will appease you.