Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update Trigger
Message
From
10/01/2000 19:02:57
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00315733
Message ID:
00315854
Views:
28
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform