G
Guest
I have the same code for enabling nav buttons on two forms, both
identical except for content.
The code is
---------------------------
Private Sub Form_Current()
Me.Previous.Enabled = (Me.CurrentRecord >1)
Me.Next.Enabled = (Me.CurrentRecord < Me.RecordsetClone.RecordCount)
End Sub
---------------------------
The only difference between the two forms is the one that works does not
have a BeforeUpdate event. I have already checked, and disabling the
BeforeUpdate event doesn't make any difference.
However, if you select Last or First Record, then the Previous / Next works.
Any help would be appreciated.
Paul.
identical except for content.
The code is
---------------------------
Private Sub Form_Current()
Me.Previous.Enabled = (Me.CurrentRecord >1)
Me.Next.Enabled = (Me.CurrentRecord < Me.RecordsetClone.RecordCount)
End Sub
---------------------------
The only difference between the two forms is the one that works does not
have a BeforeUpdate event. I have already checked, and disabling the
BeforeUpdate event doesn't make any difference.
However, if you select Last or First Record, then the Previous / Next works.
Any help would be appreciated.
Paul.