(Crystal 8.5)On the first and last record of a group, I want to set a variable equal to a value within that record. I need to do this for every grouping.
So I initialize the variable in the report header
Then I set the value in the detail section
Then I have two subreports in the group footer that use this minimum and maximum dates for parameters. Currently it sets the value for the first record and the very last record of all groups. How can I set a variable on the first and last record of every group?
Thanks,
Greg
So I initialize the variable in the report header
Code:
whileprintingrecords ;
shared datetimevar start_date:= cdatetime("01/01/2006 10:10:00 AM");
shared datetimevar end_date:= cdatetime("01/01/2006 10:10:00 AM");
Code:
Whileprintingrecords;
if OnFirstRecord then
datetimevar start_date:= ({PrepLog_ttx.Date/Time}) else
if OnLastRecord then
datetimevar end_date:= ({PrepLog_ttx.Date/Time}) ;
Thanks,
Greg