One more reason NOT to use "SET FILTER...". Every time I do I back myself into a corner and have to rewrite the code. I don't use it at all in apps.
Barbara.
>Dear Barb,
>
>Finally, i found the problem, but thanks anyway.
>The problem was: i was using SET FILTER TO ... and RECCOUNT doesn't "respect" the filters. So, when i was expecting VFP return 2 values he was returning 4 or more (other lines that doesn't respect that filter). So, values were completely crazy.
>
>Obrigado ;)
>
>Ricardo