Hi folks,

I couldnt find a method to print a serial number which reset itself once the group number changes, hence I compile the formula below:

Code:
Global numberVar iSno := 0;
If PreviousIsNull ({REQUESTTable.Req_Type}) Then
RecordNumber - iSno
Else
    If {REQUESTTable.Req_Type} <> Previous ({REQUESTTable.Req_Type}) Then
        iSno := RecordNumber;
        RecordNumber - iSno
    Else
        RecordNumber - iSno
But I keep having this error, stating around "Else" statement, saying the remaining part of the text does not appear to be part of the formula.

Does anyone know a easier way to reset a serial number, or the problem to my code?

Many thanks.

Rgds.

KT