Hi,
I have a formula that displays the record number for records being displyed on the report. It works fine but I want it to reset on change of the group. How can I do it in the formula below.
I tried incorporating the formula in Running total but it does not like the variable in there. This is the formula that I have
Thanks,
Ekta
I have a formula that displays the record number for records being displyed on the report. It works fine but I want it to reset on change of the group. How can I do it in the formula below.
I tried incorporating the formula in Running total but it does not like the variable in there. This is the formula that I have
Code:
WhilePrintingRecords;
numberVar a;
if
{#rec-count}=0 OR
( {P_60403.FAC_IDENT} = Previous ({P_60403.FAC_IDENT}) AND
{P_60403.LOG_ID}=Previous ({P_60403.LOG_ID})
)
OR
( {P_60403.LOG_STATUS}<>"O" AND
Not(isNull({P_60403.BACKUP_START_DATE}) ) AND {P_60403.BACKUP_SYSTEM}<>"D" AND
( ( DateDiff ("n", Date({P_60403.BACKUP_START_DATE}),Date({P_60403.START_DATE}) ) ) +
( DateDiff ("n", Date({P_60403.END_DATE}),Date({P_60403.BACKUP_END_DATE}) ) ) = 0
)
)
OR
( {P_60403.LOG_STATUS} <> "O" AND
( isNull({P_60403.BACKUP_START_DATE}) OR {P_60403.BACKUP_SYSTEM}="D" ) AND
( DateDiff ("n", Date({P_60403.END_DATE}), Date({P_60403.START_DATE})) ) = 0 )
then RecordNumber
else
a:=a+1;
Thanks,
Ekta