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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

one parent report to multi-subreport shared variable in CR6

Status
Not open for further replies.

13sio

Technical User
May 21, 2003
141
MO
CR6/Sybase Anywhere 5.5/ODBC

i have a report which contains 7 subreports. These subreports need a report selection of same date range. I wanna input 2 parameters, startDate & endDate, in parent report, and subreports can share these 2 parameters. subreport link only supplies one to one linking; and for using store/fetch variable in report selection formula, i always get the error "This function cannot be used because it must be evaluated later". Here are the code i've tried. Thank you for your attention.
For parent report
Code:
StoreDateVar ("sDate",{?StartDate});
StoreDateVar ("eDate",{?EndDate});
//{?StartDate}&{?EndDate} are 2 parameters 
//entered in parent report
For subreports' selection formula
Code:
{table.field} in FetchDateVar ("sDate") to FetchDateVar ("eDate")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top