hi there... first of all your update doesn't have any where clause.. so it's updating all the table!
maybe there is a problem with the data you are obtaining??
also the grid has this functionality built in.. so you don't have to write any code to do this..
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========