So...{Table.date} is not a date at all but a string??
Go to Insert|Database and highlight {Table.date}
Right-click and browse the data....does it say the data is a date, number or string??
If it is a string then modify these formulas as follows:
*********************************************
@initialization
whilePrintingRecords;
StringVar array theDate := ["",""];
" ";
*********************************************
@Calc
whilePrintingRecords;
StingVar array theDate ;
if {Table.Type} = "FIN" then
theDate[1] := maximum({table.date},{Table.Type});
if {Table.Type} = "PAA" then
theDate[2] := maximum({table.date},{Table.Type});
*********************************************
@display_PAA
whilePrintingRecords;
StringVar array theDate ;
{table.Child} + space(10) + thedate[2]
*********************************************
whilePrintingRecords;
StringVar array theDate ;
//this will suppress the footer anytime the maxFIN date
//is greater than the maxPAA date
theDate[1] > theDate[2]
If it is a number then change the formulas to NumberVar and initialize the array to zeros
This should work then...then again it won't since the format of the date doesn't lend itself to min/max determinations .... Should be yyyyMMdd for that to happen..hmmmm
Create one more formula to convert the date string to a better format...place this formula, suppressed in the detail section
@convertDate
//there is no "WhilePrintingRecords" in this formula since
//you would not be able to do the max on it
StringVar NewDate := "";
numberVar pos1;
numberVar pos2;
//find the position of the "/"
pos1 := InStr ({table.date},"/"

;
pos2 := InStr (pos1 + 1,{table.date},"/"

;
//puts the date now in the format yyyymmdd
NewDate := Newdate + right({table.date},4) +
mid({table.date},pos1 + 1,pos2 - pos1 + 1)+
left({table.date},pos1 - 1);
NewDate;
***************************
Now modify @calc as follows
@Calc
whilePrintingRecords;
StingVar array theDate ;
if {Table.Type} = "FIN" then
theDate[1] := maximum({@convertDate},{Table.Type});
if {Table.Type} = "PAA" then
theDate[2] := maximum({@convertDate},{Table.Type});
Now it might work
Jim