Hi there..
Two weirds things I see on your code. You are actually creating an update command, but you are never executing it.. Also, you are sending a lot of parameters to an update query, but the query never use them...
And also, you are testing the value of container number, before you add it to the parameters collection, shouldn't that be done before that?
And yes, you can use an SP 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
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========