C
Curmudgeon
I have a simple statement
If T.Summary = True Then
If (T.Start2 <> "NA" And T.Start2 < T.Start) Or (T.Finish2 <> "NA" And
T.Finish2 > T.Finish) Then
T.Flag20 = True
Else
T.Flag20 = False
End If
End If
This works properly for the great majority of records in my file.
However, there are several records that precisely match the criteria,
but the code fails to set the flag as expected. This appears to be
happening in summary rows in which the Start2/Finish2 dates are being
rolled up from several outline levels lower.
I'm using Flag20 to suppress display of a rolled up summary bar
(Start2-Finish2) if it does not extend beyond the Start-Finish summary
bar.
I have tested each criterion separately for each record, and the
criteria are met in each case; however, the flag does not get set.
Any clues would be appreciated
Thanks
Dave
If T.Summary = True Then
If (T.Start2 <> "NA" And T.Start2 < T.Start) Or (T.Finish2 <> "NA" And
T.Finish2 > T.Finish) Then
T.Flag20 = True
Else
T.Flag20 = False
End If
End If
This works properly for the great majority of records in my file.
However, there are several records that precisely match the criteria,
but the code fails to set the flag as expected. This appears to be
happening in summary rows in which the Start2/Finish2 dates are being
rolled up from several outline levels lower.
I'm using Flag20 to suppress display of a rolled up summary bar
(Start2-Finish2) if it does not extend beyond the Start-Finish summary
bar.
I have tested each criterion separately for each record, and the
criteria are met in each case; however, the flag does not get set.
Any clues would be appreciated
Thanks
Dave