Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help- SubReport type generates Type Mismatch error?

Status
Not open for further replies.

MeBeFree

Technical User
Mar 14, 2002
6
US
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top