Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table Designer: Record Validation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00669767
Message ID:
00669796
Vues:
14
This message has been marked as the solution to the initial question of the thread.
Larry,

As Hilmar has already said the fdifference between a validation rule and a trigger is when it is applied, triggers are done last after the validation rules and the index uniqueness rules have been passed.

A situation for using a record validation rule r=instead of a field validation rule is this ...

Employee table

Marital Status Field (must be Married or Single)

Spouse's Name (must be blank if Single and filed if married)

Try enforcing the above rules with field rules. The user cannot make the employee married because the spouse's name filed is blank and they cannot put in the spouse's name because the mnarital stauts is single. A close loop that the user can never get out of. The only way to apply this rule is to wait for all fields to be completed and then apply the rule. We can marital stauts to Married or Single using the Marital status field validation rule, but we cannot apply any rule that involves the spouse's name there.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform