![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I have a form with buttons to move to the previous record and next record. If a user is on the first record, there is no previous record. So, I want the previous record button disabled. Is there code that says: Is there a previous record? If so, cmdPrevRecButton.enabled=False Then, if a user is on the last record, there is no next record. So, I want the next record button disabled. Please help! Thanks! |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi Mary Ann, You need to check the position of the current record in the forms recordset. ie if you are at the first record, then disable the previous record button. As far as the last record is concerned, clicking the move next could take the user to a new record, assuming the form is not read only. You also need to think about the navigation buttons status for an empty recordset. Hope this helps, Mrk Day. "Mary Ann" <itm (AT) itmservices (DOT) com> wrote in message news:17f5df5.0308041136.2d06ddd (AT) posting (DOT) google.com... I have a form with buttons to move to the previous record and next record. If a user is on the first record, there is no previous record. So, I want the previous record button disabled. Is there code that says: Is there a previous record? If so, cmdPrevRecButton.enabled=False Then, if a user is on the last record, there is no next record. So, I want the next record button disabled. Please help! Thanks! |
#4
| |||
| |||
|
|
I have a form with buttons to move to the previous record and next record. If a user is on the first record, there is no previous record. So, I want the previous record button disabled. Is there code that says: Is there a previous record? If so, cmdPrevRecButton.enabled=False Then, if a user is on the last record, there is no next record. So, I want the next record button disabled. |
![]() |
| Thread Tools | |
| Display Modes | |
| |