1. create two formula fields in sub report.
initalval (declaring shared variable, it conatins following syntax)
shared stringvar totrec;
Put this initval in the page header of subreport
Now create 2nd formula field
totalrec ( this formula has the following syntax)
shared stringvar totrec = shared stringvar totrec + 1;
place this totalrec forumula in details section.
now in the main report create one more formula
totrecmain (this formula has the following syntax)
shared stringvar totrec;
i hope this will get the total records displayed in subreport.
get back for any more queries........