Execute the Validate of a Textbox in a Form

tompynationtompynation Member Posts: 398
Is it possible to programmatically, execute the OnValidate trigger of a textbox on a Form?

Comments

  • garakgarak Member Posts: 3,263
    no. If you need to execute the code behind the OnAfterValidate() trigger of a textbox, you must create a function and this function you call from OnAfterValidate() and from other triggers / functions.

    Regards
    Do you make it right, it works too!
  • DenSterDenSter Member Posts: 8,305
    One of the reasons why you should not program anything in any of the form triggers. If you need something to happen as a result of entering some value, that should be programmed in the OnValidate trigger of the field in the table object itself. That way, it will always do the same thing, regardless of which form the data is entered.
Sign In or Register to comment.