E
Eka1618
Hello,
I have a form in which I have set the Navigation Button property to NO.
I have created my own buttons (btnPrevious and btnNext).
I have used the following Code in the form_Current Event:
btnPrevious.Enabled = Not Me.CurrentRecord = 1
btnNext.Enabled = Me.CurrentRecord < Me.Recordset.RecordCount
This has worked fine for months and now all of a sudden the code keeps both
buttons disabled unless I have set the Navigation Butons Property to YES.
I have tried re-creating the buttons, but no luck. I read that when the form
first loads that it displays the 1st record before the rest are loaded which
could explain my problem, however, I am not sure why this code is not working
correctly on some forms and not others...
If anyone has any suggestions on what I can do, please let me know.
Thank You!
I have a form in which I have set the Navigation Button property to NO.
I have created my own buttons (btnPrevious and btnNext).
I have used the following Code in the form_Current Event:
btnPrevious.Enabled = Not Me.CurrentRecord = 1
btnNext.Enabled = Me.CurrentRecord < Me.Recordset.RecordCount
This has worked fine for months and now all of a sudden the code keeps both
buttons disabled unless I have set the Navigation Butons Property to YES.
I have tried re-creating the buttons, but no luck. I read that when the form
first loads that it displays the 1st record before the rest are loaded which
could explain my problem, however, I am not sure why this code is not working
correctly on some forms and not others...
If anyone has any suggestions on what I can do, please let me know.
Thank You!