One other thing about the logical flow (when the rest is sorted out) - why the last record? What if the 3rd record is where the incorrect entry is? Maybe there's a typo there and the number isn't exceeded until 4 records later. Is there truly a point in setting the focus to the last record? I assume this is not a 1 record entry at a time thing, otherwise there would be no "last" record, there would be only 1 record.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.