Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing values based on Keys in 2 tables
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Changing values based on Keys in 2 tables
Divers
Thread ID:
00839636
Message ID:
00839636
Vues:
48
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform