This might work -
Create four different variable formulas.
The first is to reset the variable and is placed in the patient header
whileprintingrecords;
datetimevar minstart := CDateTime (2100, 01, 11, 00, 00, 00);
datetimevar maxend := CDateTime (1900, 01, 11, 00, 00, 00);
The second is to...