if current record isn't the one being sought, update ptr

if(currentnumber != number(ptr))

ptr = next(ptr);