S
Steve via AccessMonster.com
have four command buttons set up on my input form: NEXT | PREVIOUS | FIRST |
LAST - below is an example of the click event code for the Next button - the
user gets error messages if they are on the last record and they then click
"NEXT" or if they are on the first record and they click on the "PREVIOUS"
button. I want to modify my code to hide the "NEXT" button in the event the
last record is being displayed on the screen, and also hide the PREVIOUS
button if they are on the first record. The latter event is not such a
problem, because they just get a harmless message - but sometimes they can be
on the last record, click next and it will try to add a record because there
are some default values set up in my text boxes.
Code:
------------------------------------------------------------------------------
LAST - below is an example of the click event code for the Next button - the
user gets error messages if they are on the last record and they then click
"NEXT" or if they are on the first record and they click on the "PREVIOUS"
button. I want to modify my code to hide the "NEXT" button in the event the
last record is being displayed on the screen, and also hide the PREVIOUS
button if they are on the first record. The latter event is not such a
problem, because they just get a harmless message - but sometimes they can be
on the last record, click next and it will try to add a record because there
are some default values set up in my text boxes.
Code:
------------------------------------------------------------------------------