OK thanks I now understand that point and I have removed that line of code. Only when I click the move previous button from any position in the recordset which runs the line rst.MovePrevious, it is not moving back only one record rather it is moving to BOF and displaying the first record which is still a problem.