Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To: Set the updated records...
Message
From
11/10/2004 14:00:46
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00950441
Message ID:
00950489
Views:
10
This message has been marked as a message which has helped to the initial question of the thread.
>Hello... I'm here again! ;-)
>
>So... At the end of each day, I have to create a list of records that has been inserted, updated or deleted... My problem isn't create this list, but know which records...
>
>My idea was create a field LastUpdate DateTime and use the triggers to keep this information up to date!
>
>But, when one trigger is fired, and I try to replace some field, I got an error: Cannot update the cursor.
>
>Any idea? ... TIA!

You can't use a trigger to update a field in a table. It would be an endless loop, your update firing the trigger again, etc. Use a record validation rule to update the timestamp.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform