M
Mike Boozer
I have a number of controls that are "enabled=false" when control "new
record" is clicked. I also have some subform controls locked and/or not
visible. Its getting rather complicated and I wonder how much "code" you can
actually put on a control before it pukes. Anyway, when user enters data in
the form field and then changes his mind, I want to mimic the keyboard
escape key and re-enable all of the contols with my custom "cancel" button..
An MVP helped me with part of the solution in which I can tag the controls
and then call the tag on Cancel_Click to re-enable them.This works great
except that the data the user entered is still there. I simply (hah?) want
to return the form back to its original state before the "New record"
control was ever clicked. Everything enabled, Locks set back to original
condition, any data entered Undo, etc. Sort of like the user never even
clicked the "New Record" control. If I could, the cancel button would be a
combination of "keyboard escape key", "acUndo" and re-enabling and setting
locks. Can you code the keyborad escape key in VB? Do you have to basically
build your own "cancel button" to take into account all of the events that
are occurring? I'm a hardcore newbie and can't stop trying. Thanks.
record" is clicked. I also have some subform controls locked and/or not
visible. Its getting rather complicated and I wonder how much "code" you can
actually put on a control before it pukes. Anyway, when user enters data in
the form field and then changes his mind, I want to mimic the keyboard
escape key and re-enable all of the contols with my custom "cancel" button..
An MVP helped me with part of the solution in which I can tag the controls
and then call the tag on Cancel_Click to re-enable them.This works great
except that the data the user entered is still there. I simply (hah?) want
to return the form back to its original state before the "New record"
control was ever clicked. Everything enabled, Locks set back to original
condition, any data entered Undo, etc. Sort of like the user never even
clicked the "New Record" control. If I could, the cancel button would be a
combination of "keyboard escape key", "acUndo" and re-enabling and setting
locks. Can you code the keyborad escape key in VB? Do you have to basically
build your own "cancel button" to take into account all of the events that
are occurring? I'm a hardcore newbie and can't stop trying. Thanks.