S
Savvoulidis Iordanis
I have a main report (rpt1) with 2 subreport controls (subrep1 and subrep2
that share the same report object (rpt2).
Initially the report object rpt2 in the two controls, does not have any
query associated with it.
What I want in the main report's open event is to have the 1st subreport
control display the subreport,
using different parameters than the 2nd subreport control, but I get error
number 2455.
The open event of the main report (rpt1)
Private Sub Report_Open(Cancel As Integer)
me.subrep1.Report.RecordSource = "qry2" <<<< error 2455 here
me.subrep1.Requery
..
..
..
..
End Sub
that share the same report object (rpt2).
Initially the report object rpt2 in the two controls, does not have any
query associated with it.
What I want in the main report's open event is to have the 1st subreport
control display the subreport,
using different parameters than the 2nd subreport control, but I get error
number 2455.
The open event of the main report (rpt1)
Private Sub Report_Open(Cancel As Integer)
me.subrep1.Report.RecordSource = "qry2" <<<< error 2455 here
me.subrep1.Requery
..
..
..
..
End Sub