Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update Trigger Prob
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Update Trigger Prob
Divers
Thread ID:
00472562
Message ID:
00472562
Vues:
73
I have a column for a security level on a table-buffered table. I created the update trigger below, but when I fire the command below, rows that have a value above 5000 still get updated. Help?
function updcheck
cOldName = oldval("user_name","timeusernew")
if assoc_id > 5000
user_name=cOldName
endif
return .t.

update timeusernew set user_name="blahblah" where assoc_id > 3000
I even tried to put "skip" inside the if...endif code but VFP choked on that too.

VFP6/SP4.

Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform