Hello
I'm using Crystal 9.0 and accessing data from an Access 2002 database.
I have created a graph that can be run by quarters or by month. Both the quarter and month fields are text i.e.
qtrname=If Month({NACRS.AdmDateTime}) in [4,5,6] then "Q1-"+{@Fyear2} else
If Month({NACRS.AdmDateTime}) in [7,8,9] then "Q2-"+{@Fyear2} else
If Month({NACRS.AdmDateTime}) in [10,11,12] then "Q3-"+{@Fyear2} else
If Month({NACRS.AdmDateTime}) in [1,2,3] then "Q4-"+{@Fyear2}
month=ToText({NACRS.AdmDateTime},"MMM-yyyy")
What I want to be able to do is create a line of narrative based on the results but how do I reference minimum and maximum values? For instance, in my whileprintingrecords statement I indicate
if maxmonth=maximum(Month) then sum(cases,elementA) but that only selects the first summary value. Crystal won't let me select maximum(sum(cases,elementA)).
My second problem is that it's not recognizing QtrName in sequence i.e. if I have Q4-2008/09 it thinks that is higher than Q2-09/10. I'm thinking I'll need to create two fields - one for use in the graph (where I select specified sort so that the above issues with text don't occur) and one for the narrative but I still don't know what to do.
All assistance greatly appreciated.
I'm using Crystal 9.0 and accessing data from an Access 2002 database.
I have created a graph that can be run by quarters or by month. Both the quarter and month fields are text i.e.
qtrname=If Month({NACRS.AdmDateTime}) in [4,5,6] then "Q1-"+{@Fyear2} else
If Month({NACRS.AdmDateTime}) in [7,8,9] then "Q2-"+{@Fyear2} else
If Month({NACRS.AdmDateTime}) in [10,11,12] then "Q3-"+{@Fyear2} else
If Month({NACRS.AdmDateTime}) in [1,2,3] then "Q4-"+{@Fyear2}
month=ToText({NACRS.AdmDateTime},"MMM-yyyy")
What I want to be able to do is create a line of narrative based on the results but how do I reference minimum and maximum values? For instance, in my whileprintingrecords statement I indicate
if maxmonth=maximum(Month) then sum(cases,elementA) but that only selects the first summary value. Crystal won't let me select maximum(sum(cases,elementA)).
My second problem is that it's not recognizing QtrName in sequence i.e. if I have Q4-2008/09 it thinks that is higher than Q2-09/10. I'm thinking I'll need to create two fields - one for use in the graph (where I select specified sort so that the above issues with text don't occur) and one for the narrative but I still don't know what to do.
All assistance greatly appreciated.