Dear Experts,

I use ADO for database...and part of it I make codes likr this:

VB Code:
  1. Private Sub cmdPrev_Click()
  2.     If Not (rst.BOF = True) Then
  3.         rst.MovePrevious 'move previous record
  4.         fillfields 'fill the controls
  5.     End If
  6.    
  7.     Application.ScreenRefresh
  8. End Sub
  9.  
  10. Private Sub cmdNext_Click()
  11.     If Not (rst.EOF = True) Then
  12.         rst.MoveNext 'move to next record
  13.         fillfields 'fill the controls
  14.     End If
  15.     Application.ScreenRefresh
  16. End Sub

Why I have to click "Previous" or "Next" twice in order to get the next/previous record..???...how to make it only one click on this button "Previous/Next" to get the next/previous record...please...is there any missed/wrong in my codes...????

Please help me...

Jennifer