if the current record has the number sought

if(currentnumber != count)