srpraju
asked on
data is not generating from subreports ,when executed.
data is not generating in subreports
i have a filter form prior to rpt generatring, where upon entering or selecting the data the rpt will be generated , but
when i run rpt i am able to get the values in main rpt , but not in subreports
here these subreports r linked with a field to main rpt which is from a view
and basing upon that field these subrept will generate values frm 4 tables (i have given links to tables)
i have some param.'s basing on those values iam supreesing these subrpts when reqd
so here my doubt
data src info. should be given to subrpts r not which r linked with main rpts n these sub rpts has no parameters to pass , all that reqd. defined as formulas in rpt.
if data src info should be given to sub rept , then how ,
is this the exact prob. why data is not passing into subrpts , when executed.
i have a filter form prior to rpt generatring, where upon entering or selecting the data the rpt will be generated , but
when i run rpt i am able to get the values in main rpt , but not in subreports
here these subreports r linked with a field to main rpt which is from a view
and basing upon that field these subrept will generate values frm 4 tables (i have given links to tables)
i have some param.'s basing on those values iam supreesing these subrpts when reqd
so here my doubt
data src info. should be given to subrpts r not which r linked with main rpts n these sub rpts has no parameters to pass , all that reqd. defined as formulas in rpt.
if data src info should be given to sub rept , then how ,
is this the exact prob. why data is not passing into subrpts , when executed.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
create a reort class object// rptobj
create a subreport document//rptsub
and proceed with this code
rptsub = rptobj.Subreports.Item("Na
rptsub.SetDataSource(Data base table or dataset)
it works fine