All:
I am getting back working with Crystal reports and have a report as follows:
Date Media Type Records
2-11 CO-OP 4
2-11 FAX 10
2-11 Mail 5
2-11 Phone 120
3-11 Fax 15
3-11 Phone 25
4-11 CO-OP 5
4-11 FAX 12
4-11 Mail 10
4-11 Phone 100
The report that we have in place now is a Excel report that we cut and past monthly the data and then there are all kind of formulas on top of the report in the header area that get summarized.
I am now working on the totals for the report. I have a formula to create a summary of all the Media Records. See below:
Total 306
CO-OP
FAX
Phone
I then created another variable that I would use to create a summary total for records that were CO-OP. I declared a formula field called Initialize Variables and put it in the report header. I will eventually hide / suppress it from view.
The Initialize Variable is as follows:
Global Numbervar Total_Coop :=0
I then have a formula to create the summary totals. It looks as follows:
If {Command.APP_MEDIA_CD} = "CO-OP" then
Numbervar Total_Coop = Total_Coop + 1
I kept the formula simple to just add the number or records I find to check myself.
But the formula is coming back as a boolean value of False.
I have the data again in the report header, with no groupings, etc. It is a simple dump and summarize report and I need to keep it in the same format.
So my question is, what am I doing wrong with this?
I would love to hear from someone to let me know what I did wrong.
Thanks ahead of time for your assistance.
Jay