I have a 3 part formula that I am hoping to get the minimum Legal Date that is greater or equals to the maximum Start Date. The formula works OK until it get to a record where the minimum Legal Date is equals to the maximum Start Date then no date shows. Below is the 3 parts of the formula;
//Group Header Formula:
whileprintingrecords;
datetimevar minlegal;
if not inrepeatedgroupheader
then
minlegal := date(0,0,0)
//Details Formula (suppressed):
whileprintingrecords;
datetimevar maxstart := maximum({CASE_STATUS.BEGIN_EFF_DATE},{CASE_BASE.CASE_ID});
datetimevar minlegal;
if {LEGAL_BASE.OFFICIAL_DATE} >= maxstart
then
minlegal := {LEGAL_BASE.OFFICIAL_DATE};
if {LEGAL_BASE.OFFICIAL_DATE} >= maxstart and
{LEGAL_BASE.OFFICIAL_DATE} < minlegal
then
minlegal := {LEGAL_BASE.OFFICIAL_DATE};
//Group Footer Formula:
whileprintingrecords;
datetimevar minlegal;
Is there something that needs to be added to the formula the get the dates that are equal to show?
I am using CR 11
//Group Header Formula:
whileprintingrecords;
datetimevar minlegal;
if not inrepeatedgroupheader
then
minlegal := date(0,0,0)
//Details Formula (suppressed):
whileprintingrecords;
datetimevar maxstart := maximum({CASE_STATUS.BEGIN_EFF_DATE},{CASE_BASE.CASE_ID});
datetimevar minlegal;
if {LEGAL_BASE.OFFICIAL_DATE} >= maxstart
then
minlegal := {LEGAL_BASE.OFFICIAL_DATE};
if {LEGAL_BASE.OFFICIAL_DATE} >= maxstart and
{LEGAL_BASE.OFFICIAL_DATE} < minlegal
then
minlegal := {LEGAL_BASE.OFFICIAL_DATE};
//Group Footer Formula:
whileprintingrecords;
datetimevar minlegal;
Is there something that needs to be added to the formula the get the dates that are equal to show?
I am using CR 11