I have a report that has 2 parameters: ?StartDate and
?EndDate. I have a subreport linked to the report on the dates.
In the main report, my selection criteria is :{Day_Meter.dtBusDay} in ({?StartDate}-1) to {?End Date} so that I can possibly get data from the previous day also. This part works fine in the main report. I am able to pull data with a formula like this:
if {Day_Meter.dtBusDay}in[({?StartDate}-1)to({?End Date}-1)]
then {Day_Meter.iStackerAmount}/100 else 0
Now I need to get data from the sub-report. I have my selection criteria set at:
{Liability.dtBusDay} in {?Pm-?StartDate} to {?Pm-?End Date}
I have a formula to get data from yesterday's business day:
if {Liability.dtBusDay}>= ({?Pm-?StartDate}-1)
and {Liability.dtBusDay}< ({?Pm-?End Date}-1)
then {Liability.iFinalTicketLiabCents}/100
My result is a zero, and I know that there should be a number there.
What am I doing wrong?
Thanks
?EndDate. I have a subreport linked to the report on the dates.
In the main report, my selection criteria is :{Day_Meter.dtBusDay} in ({?StartDate}-1) to {?End Date} so that I can possibly get data from the previous day also. This part works fine in the main report. I am able to pull data with a formula like this:
if {Day_Meter.dtBusDay}in[({?StartDate}-1)to({?End Date}-1)]
then {Day_Meter.iStackerAmount}/100 else 0
Now I need to get data from the sub-report. I have my selection criteria set at:
{Liability.dtBusDay} in {?Pm-?StartDate} to {?Pm-?End Date}
I have a formula to get data from yesterday's business day:
if {Liability.dtBusDay}>= ({?Pm-?StartDate}-1)
and {Liability.dtBusDay}< ({?Pm-?End Date}-1)
then {Liability.iFinalTicketLiabCents}/100
My result is a zero, and I know that there should be a number there.
What am I doing wrong?
Thanks