Dear Jim,
>> explicit WHILE the SCAN uses the scope of REST.
Don't quite get this part.
>> The above would fail if the first record were not in NY and the scan used a scope of all.
Not quite in my case, because the SCAN WHILE !llErr had llErr = .F. prior to it :-
llErr = .F.
SCAN WHILE !llErr
The loop worked perfectly for all the records in the table.
Kenneth
Kenneth.