>He Fobio,
>Should i use with max and between command ???
If
Examtran.lcode, Examtran.sec;
is unique then the group by is not necessay,
otherwise
with 70 setting VFP return the last record values
for every Examtran.lcode, Examtran.sec group,
is it what you want?