Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Appendquery
Message
 
To
23/10/2000 14:55:03
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00432909
Message ID:
00433117
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform