What am I doing wrong?
I have a main report - LongReport - that has a subreport - XSubRpt
In my OnFormat event procedure I declare a variable:
Dim Rpt as SubReport
then I set the report:
Set Rpt = Reports![LongReport]![XSubReport]
this gives me a Type mismatch runtime error.
If I change the declaration to:
Dim Rpt as SubForm
I get no error but then I can't use the section property, which is what I really want to get to.
What am I doing wrong?
Thanks
Patti
I have a main report - LongReport - that has a subreport - XSubRpt
In my OnFormat event procedure I declare a variable:
Dim Rpt as SubReport
then I set the report:
Set Rpt = Reports![LongReport]![XSubReport]
this gives me a Type mismatch runtime error.
If I change the declaration to:
Dim Rpt as SubForm
I get no error but then I can't use the section property, which is what I really want to get to.
What am I doing wrong?
Thanks
Patti