I'm trying to disable command buttons if I'm at the first or last record. So, for example, If I'm at the very first record on a form, I want the Previous and First navigation buttons to be disabled. I'm not having any luck with EOF and BOF. I've also tried using AbsolutePosition and RecordCount. Does anybody have any advice on how to do this? Thanks! Here is one thing I've tried:
Code:
Private Sub Form_Current()
'Disable Buttons
Dim rst As Recordset
If rst.BOF Then
Me.btnPrevious.Enabled = False
Else
Me.btnPrevious.Enabled = True
End If
End Sub