Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Appendquery
Message
 
À
23/10/2000 14:55:03
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00432909
Message ID:
00433117
Vues:
26
>Thank you for your answer.
>
>I have good news and bad news.
>The good news is: your method (cn.execute "Update testdb Set testfield = 'Hello'where testfield = 'Sabrina'") I already know. This would work of course.
>The bad news is: I did not phrase my question properly. I need the loop to compare the performance in speed between Access and FoxPro tables, and the best way to compare such performance is to use a loop (I suppose).
>
>Can you spend some more time on me?

Something like:
rst.movefirst
do until rst.eof
   if rst("testfield") = "Sabrina" then
      rst.edit  'required in DAO only
      rst("testfield") = "Hello"
      rst.update
   end if
   rst.movenext
loop
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform