Using CR 8.0 and Oracle database. I've used shared variables in the past but only with numbers and I'm not real handy when it comes to dates. Here is my problem. In my subreport I have these 3 groups in the following order: Employee_ID, Project_Name, Phase. In the "Phase" groupfooter 3 I have the following formula:
WhilePrintingRecords;
Shared DateTimeVar MnBm :=
Minimum({SUBPROJECT_BENCHMARKS.BENCHMARK_DATE})
I am looking for the earliest date in a particular phase.
In the Main report, I think I need to do the Initialize, Evaluate, Display process. I have the same groups in the main report as the subreport and in the same order. So in "Phase" groupheader 3a I have the following formula:
//InitMnBM
WhilePrintingRecords;
DateTimeVar MnBm;
MnBm := Date(0,0,0);
In the groupheader 3b I have the following formula:
//EvalMnBm
WhilePrintingRecords;
DateTimeVar MnBm;
MnBm := MnBm
In the groupfooter 3 I have the following formula:
//DispMnBm
WhilePrintingRecords;
DateTimeVar MnBm;
MnBm;
Before I went to the 3 step process I was just using the following formula in the groupfooter 3, but it wasn't resetting between the projects:
//MainMnBM
WhilePrintingRecords;
Shared DateTimeVar MnBm;
MnBm
With the 3 step process I'm not getting any date values and with the //MainMnBM it's not resetting. Can anyone help?
Thanks,
Sherry
WhilePrintingRecords;
Shared DateTimeVar MnBm :=
Minimum({SUBPROJECT_BENCHMARKS.BENCHMARK_DATE})
I am looking for the earliest date in a particular phase.
In the Main report, I think I need to do the Initialize, Evaluate, Display process. I have the same groups in the main report as the subreport and in the same order. So in "Phase" groupheader 3a I have the following formula:
//InitMnBM
WhilePrintingRecords;
DateTimeVar MnBm;
MnBm := Date(0,0,0);
In the groupheader 3b I have the following formula:
//EvalMnBm
WhilePrintingRecords;
DateTimeVar MnBm;
MnBm := MnBm
In the groupfooter 3 I have the following formula:
//DispMnBm
WhilePrintingRecords;
DateTimeVar MnBm;
MnBm;
Before I went to the 3 step process I was just using the following formula in the groupfooter 3, but it wasn't resetting between the projects:
//MainMnBM
WhilePrintingRecords;
Shared DateTimeVar MnBm;
MnBm
With the 3 step process I'm not getting any date values and with the //MainMnBM it's not resetting. Can anyone help?
Thanks,
Sherry