Information générale
Catégorie:
Codage, syntaxe et commandes
>I have a grid in a form. There is an add button.
>When a user clicks on add, I append a blank record and then disable
>the add button and enable the save and cancel buttons. I do not
>want the user to move off of the blank record. At this time they
>can. How can I keep the focus on the blank record until they click
>the cancel button or add some text to the record?
>
>Thanks,
>
>Steve Wilson
To keep them in the record, you could add code to the VALID of each textbox. There was a thread in the last week about taking into account the cancel button. I believe it involved code in the lost focus and checking what was clicked on. You could also do something with the BeforeRowColChange (Not sure if I have that exactly) event.
-Michelle
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement