General information
Category:
Coding, syntax & commands
>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only