for each customer where customer.country='USA' break by customer.state no-lock: if first-of(customer.state) then do: /* do something with first record */ end. /* do something with records */ if last-of(customer.state) then do: /* do something with last record */ end. end.Scan endscan sort of does this but I cannot break. Can VFP do something like this?