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
Divers
Thread ID:
00472562
Message ID:
00472948
Vues:
22
It seems that your line:
update timeusernew set user_name="blahblah" where assoc_id > 3000
should be changed to:
update timeusernew set user_name="blahblah" where assoc_id > 3000 and assoc_id <=5000


>>>>>>>>>>>>>> your message below
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform