Is it possible to bind a sub report programatically?
I have a report that needs to have two lists side-by-side, with a total for each at the bottom (so the totals can be compared). To do this I was thinking that I would create a sub report that listed all of the data, create two instances of it on the parent report, and put a different filter on each of the two instances.
Unfortunately, when I did this, I got an error stating:
Run-time error '2455':
You entered an expression that has an invalid reference to the property Form/Report.
Any advice would be greatly apreciated.
I have a report that needs to have two lists side-by-side, with a total for each at the bottom (so the totals can be compared). To do this I was thinking that I would create a sub report that listed all of the data, create two instances of it on the parent report, and put a different filter on each of the two instances.
Code:
set rpt1 = new subReport
set rpt2 = new subReport
rpt1.filter = "empnum=1"
rpt2.filter = "empnum=2"
Run-time error '2455':
You entered an expression that has an invalid reference to the property Form/Report.
Any advice would be greatly apreciated.