Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update Trigger
Message
De
10/01/2000 19:02:57
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00315733
Message ID:
00315854
Vues:
26
>I have several tables where I store a check sum value to a field based on values of other fields in the same table. I am trying to use the Update trigger on these tables to replace this CheckSum field with an integer value. Whenver I do, I get a Can not update the cursor error when I issue a replace ChkSum with lnChkSum command in the SP trigger code. I can kind of understand this in that this is a record level data verification trigger. Is there any way I can use a trigger to replace a field value in the record being updated and validated by the update trigger?
>
>TIA!

Doug's right, you have to use the REcord Validation Rule. THis is also the only way to implement a timestamp field in VFP.

If you think about it, it would be bad news to have an update trigger modify a field. Can you say infinite loop?
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform