D
Don
What is the best way to cancel an edit operation on data in a text box?
Manually, the user can hit the ESC key and the text box will resort back to
the data in it at the beginning of the edit. However, on certain text boxes
I would like to add a commit confirmation (i.e. YES/CANCEL). This probably
being best done in the BeforeUpdate event for the text box. However, what
is the best way to restore the original data in the case of a cancellation?
Is it best to copy the original data prior to editing? (If so, which event
is the best for placing the code to capture the data?) Or is there a
programmatic equivalent to the ESC key that will prevent the new data from
being committed?
Any ideas will be greatly appreciated!
Thanks!
Don
Manually, the user can hit the ESC key and the text box will resort back to
the data in it at the beginning of the edit. However, on certain text boxes
I would like to add a commit confirmation (i.e. YES/CANCEL). This probably
being best done in the BeforeUpdate event for the text box. However, what
is the best way to restore the original data in the case of a cancellation?
Is it best to copy the original data prior to editing? (If so, which event
is the best for placing the code to capture the data?) Or is there a
programmatic equivalent to the ESC key that will prevent the new data from
being committed?
Any ideas will be greatly appreciated!
Thanks!
Don