I need to write a simple update trigger which should do following: update a logical field with .T. if any other fields changed. I wrote few lines of code that I thought should do it, but I am failing with "Cannot update cursor" error. Can somebody help???
Is the field you are updating in the same table? You cannot do that via a trigger then. Think about it: the trigger fires, and then changes a value in the same table, which fires the trigger, which changes a value in the same table, which fires the trigger, ... in other words, and infinite loop. You can update a separate table in a trigger, but not the table on which the trigger is firing.
Nope! Triggers are meant for validating data, maintaining referential integrity (between tables) and "auditing" to another file - not for fixing fields in the same table.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.