Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update a field using triggers.
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Update a field using triggers.
Divers
Thread ID:
00882010
Message ID:
00882010
Vues:
69
Hi folks!

I have a little problem: Imagine one table with just four fields: PrimaryKey, Total1, Total2 and Total... This table had Insert, Update and Delete triggers.

I just want to calculate Total (using triggers) but I'm receiving an error message: Cannot Update the Cursor.

In my stored procedure I have the line:
Replace Total With Total1 - Total2
My program runs something like that:
Begin Transaction
Update MyTable Where PrimaryKey = "BlaBla" Set Total2 = 500
End Transaction
I do not use Table or Row Buffer.

TIA!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rodolfo Duarte
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform