I've been programming for years, but just started using CR last week, so please forgive me if this turns out to be a 'duh' moment. 
I have a table that holds sets of data, one per day (populated by a nightly job). The report requests a start date & an end date, and is then s'posed to pull the relevant data for that particular date from the table. The formulas pulling data for the start date are fine; however, I get all zeros for the end date's fields. Here's the formula I'm using:
Any idea why I'm getting zeros on this? The data does exist; I see it just fine in the system. The only difference in the start & end date formulas is the parameter name.
tia
tigerjade
"Always code as if the person who ends up maintaining your code will be a violent psychopath who knows where you live." -- Martin Golding
I have a table that holds sets of data, one per day (populated by a nightly job). The report requests a start date & an end date, and is then s'posed to pull the relevant data for that particular date from the table. The formulas pulling data for the start date are fine; however, I get all zeros for the end date's fields. Here's the formula I'm using:
Code:
if (DateDiff("d",{HistoryMonth.histDate},{?EndDate}) = 0) then {HistoryMonth.histAllMonth10} / 1000
Any idea why I'm getting zeros on this? The data does exist; I see it just fine in the system. The only difference in the start & end date formulas is the parameter name.
tia
tigerjade
"Always code as if the person who ends up maintaining your code will be a violent psychopath who knows where you live." -- Martin Golding