Clearing a field after validation rule pop-up window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • galkej
    New Member
    • Jun 2012
    • 2

    #1

    Clearing a field after validation rule pop-up window

    Hello,

    I have a form in which there are fields that have validation rules for the quantity and types of characters that are entered by the people on the production floor. The operators are wanting me to refine this so that if they accidentally enter or scan the wrong information, the affected field will automatically be cleared of the previously-entered contents (after they clear the validation error pop-up window). How can I accomplish this?

    Thanks
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32669

    #2
    From the keyboard you would use the <ESC> key. From code you would use the .Undo() method (either for the form itself or just the control).

    Comment

    • galkej
      New Member
      • Jun 2012
      • 2

      #3
      Your recommendation of pressing <ESC> only seems to default and highlight the previously-entered record. What I am trying to do is just delete the field. Thanks.

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32669

        #4
        Clearing the entered data back to the initial value of the record is what your post asked for. Deleting a field is meaningless (as far as an operator is concerned). You can only clear the contents of a field on a form. Selecting the contents and pressing <Del> would generally do that for you, but that depends on what type of control and field and ...

        Essentially though, the answer to your original question is in my earlier post.

        Comment

        Working...