|
Hi all,
I've been having a problem with passing a date range to my sub report. I created 2 parameters in my main report, named StartDate and EndDate. I then created 2 shared variables, with the formulas
StartDate:
shared datevar StartDate;
StartDate := {?Start date};
""
EndDate:
shared datevar EndDate;
EndDate := {?End date};
""
In my subreport, I then created the formulas
StartDate:
shared datevar StartDate;
StartDate
EndDate:
shared datevar EndDate;
EndDate
When I drop these formulas in my report, I get the dates I entered before. However, I need these dates for my date range. But when I try to put them in my Selection Formula, I get the error "This formula cannot be used bacause it must be evaluated later".
Is there anyone who had this problem before, and can help me fix this?
Thanks in advance!
Kind regards,
Gerben
|