Looks like you'd just need to add one final IF statment that
checks to see if you've browsed to the last subset of records.
Since you're browsing in sets of 10 you'd need to do a check to see
if your startrow plus 10 is GTE the recordcount; if so that means
you're viewing the 'last' set of records in the group, and need to
adjust the "View Next" link so that it starts over at the first row
now.