Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update View, Help me!
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Update View, Help me!
Divers
Thread ID:
00362018
Message ID:
00362018
Vues:
50
Hi all,
I tried this coding to update a field on my view:
***
scan
if lookup(view1.field1, thisform.txtText1.value,;
view1.field1) = thisform.txtText1.value
replace view1.field2 with thisform.txtText2.value
endif
endscan
***
The problem I have is only 1 record(on the view) got updated. I would like to update all records on the view that match the condition I gave(= thisform.txtText1.value). I don't know how to have this coding inside a loop so it could be executed as many times as there are records in the view.
Please help me, any ideas, suggestions or advice would be great help!
Thanks.
Thanya.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform