Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update Trigger Prob
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Update Trigger Prob
Miscellaneous
Thread ID:
00472562
Message ID:
00472562
Views:
74
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.
Next
Reply
Map
View

Click here to load this message in the networking platform