>>>Hi Michel,
>>> One possible cause could be that _TALLY counts deleted records, but the scan wouldn't be looking for those. No other option comes to mind.
>>
>>Paul,
>>
>>It is my understanding that _TALLY would count records in the CURSOR TEMP. If deleted was ON then deleted records would be counted and they would be in the CURSOR TEMP and processed through the SCAN loop- which could give some interesting results. If deleted is OFF then deleted records should not be in the CURSOR TEMP or counted in _TALLY.
>
>Hi Ken,
>
>You probably meant the exactly opposite: if deleted set ON, cursorTemp would not contain deleted records and if it's set to OFF, it would contain them.
You are correct. I dyslexic was.
Ken Wardwell