Results 1 to 3 of 3

Thread: [RESOLVED] How can I ignore the vaildation if I click on cancel?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2006
    Posts
    365

    Resolved [RESOLVED] How can I ignore the vaildation if I click on cancel?

    Hi,

    For example, I have a Text1_Validate sub to valid the customerID.
    When I click on the new button and click on cancel button, the program will keep prompting to enter a vaild value continously.

    Is it possible to set the validate sub to false when the cancel_click is activated?

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: How can I ignore the vaildation if I click on cancel?

    Set the CausesValidation property of the Cancel button to False. When this property is False and the button is clicked, the Validate event of the control that currently has focus will not fire.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2006
    Posts
    365

    Re: How can I ignore the vaildation if I click on cancel?

    Cool.
    It works perfectly.

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width