General information
Category:
Coding, syntax & commands
>I have data entry taking place in a grid control. How can I best create a new record (i.e., line on the grid) so that the user doesn't have to keep punching an Add Item button every time? Do I have to TABLEUPDATE() the completed record? What is the best way to automate the INSERT INTO for the new record? Finally, is it OK to use the VALIDATE event to TABLEREVERT the new record when the user doesn't want it??
>
>TIA.
>
>John
One suggestion is you can use a specify key say ctrl+n which when pressed will call a user define method/procedure to add a record.
that key you can set through on key label in the when event of grid and can reset it in valid event.
as far as tableupdate/revert are concerned, best way is to use command buttons like add, edit, when either of these are clicked, 2 buttons save and cancel becomes enable allowing the user to save or cancel the record.
hope this helps !!
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