Information générale
Catégorie:
Codage, syntaxe et commandes
>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 !!
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