Sep 11, 2003 #1 yagnik3128 Programmer Joined Jun 14, 2001 Messages 64 Location IN If i want to pass the selectionformula for date range in sub report. How is it possible. Cal anyone help me?
If i want to pass the selectionformula for date range in sub report. How is it possible. Cal anyone help me?
Sep 11, 2003 #2 pgtek Programmer Joined Sep 28, 2001 Messages 1,180 Location CA hi create your parameter in the main report ?BeginDate and the other ?EndDate do the same in the sub report ?subBeginDate and ?subEndDate link them cheers pgtek Upvote 0 Downvote
hi create your parameter in the main report ?BeginDate and the other ?EndDate do the same in the sub report ?subBeginDate and ?subEndDate link them cheers pgtek
Sep 12, 2003 #3 GJParker Programmer Joined Jul 4, 2002 Messages 1,614 Location GB 1. Create parameters for your start and en date in the main report i.e. ?StartDate and ?EndDate. 2. Go to Edit -> SubReport Links 3. select ?StartDate from the Available fields list and add that to the fields to link to (crystal will automatically create a parameter in the subreport called ?Pm-?StartDate) 4. Select the Field from the subreport you want the dates based on. 5. Repeat steps 3 & 4 for the ?EndDate parameter and click OK This will enter a selection formula in the subReport like ?StartDate={MyTable.fldDate} and ?EndDate={MyTable.fldDate} you will need to manually edit this to change the comparison signs e.g. ?StartDate>={MyTable.fldDate} and ?EndDate<={MyTable.fldDate} HTH Gary Parker Systems Support Analyst Manchester, England Upvote 0 Downvote
1. Create parameters for your start and en date in the main report i.e. ?StartDate and ?EndDate. 2. Go to Edit -> SubReport Links 3. select ?StartDate from the Available fields list and add that to the fields to link to (crystal will automatically create a parameter in the subreport called ?Pm-?StartDate) 4. Select the Field from the subreport you want the dates based on. 5. Repeat steps 3 & 4 for the ?EndDate parameter and click OK This will enter a selection formula in the subReport like ?StartDate={MyTable.fldDate} and ?EndDate={MyTable.fldDate} you will need to manually edit this to change the comparison signs e.g. ?StartDate>={MyTable.fldDate} and ?EndDate<={MyTable.fldDate} HTH Gary Parker Systems Support Analyst Manchester, England
Sep 14, 2003 Thread starter #4 yagnik3128 Programmer Joined Jun 14, 2001 Messages 64 Location IN Hi pgtek, I have done as per ur sugg. But now my problem is how to pass parameter value from vb? Pl. Help me. Upvote 0 Downvote
Hi pgtek, I have done as per ur sugg. But now my problem is how to pass parameter value from vb? Pl. Help me.