Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing values based on Keys in 2 tables
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Changing values based on Keys in 2 tables
Miscellaneous
Thread ID:
00839636
Message ID:
00839636
Views:
49
I have a cursor named crsfinal with one field called mainkey. I have another table named modacad with the same field named mainkey and additional fields. I would like to input a value called "Changed" into a field called moc023 in modacad if the mainkey is present in crsfinal and modacad. I have tried:
SCAN
select modacad
REPLACE moc023 WITH "Changed" FOR crsfinal.mainkey=modacad.mainkey
ENDSCAN
This does not do anything. Can anybody put me in the right direction.

Many Thanks
Neil Lewis
IT R&D Manager
Velmore Ltd
Next
Reply
Map
View

Click here to load this message in the networking platform