>Of course !!! that makes sense - thanks for solution greg.
>k
It is not really a good solution. You better switch to correct code instead of this. If all you need is to check if there is a row matching condition or not, then you need to use LOCATE. Using return from SCAN sounds like bad approach.
If it's not broken, fix it until it is.
My Blog