Validation function on Add and Update

Validation function on Add and Update


Hi there,

In my forms, I have a lot of controls with Alert messages that I have coded in the Validate functions on Add and on Edit.

A lot of these validations are identical in the Add and Edit. 

How could I code once and use these validations in both Add and Edit ?
I have tried to code a function "Validate_Form" but the Alert task cannot be called within a function.

Any idea ?

Many thanks !