>>In my quest of optimizing my code, how about this one:
>>
>>
>>lcField=FIELD(lnCompteur)
>>IF &lcField<>OLDVAL(FIELD(lnCompteur))
>>
>
>So. . .
>IF FIELD(lnCompteur) <> OLDVAL(FIELD(lnCompteur))
>. . . doesn't work?
FIELD(lnCompteur) returns the name of the field not the value.