In the detail section, I need to keep a total of how many rows are returned that fall within the time period. So when I run the report, I am prompted for a "Thru" date and I would enter today's date.
The report (before I made the above changes) would have the columns
March 2012 March 2011 FY2011 FY2012
The code to pull back the number of rows for the current month is:
If {case_action.csa_date3} >=
{@Date This Month Start} and
{case_action.csa_date3} <=
{@Date This Month Thru} Then
1
Else
0
I tried modifying the code to bring back rows for Feb 2011 and it looks like this:
But it is assigning a 1 to all the rows - not just the ones that were a month behind the current month. What did I do wrong?