Bounds check record number