Ummm You are you using 3 parameters in your query, but only add 2 to your connection.
You use: @new_incident_Nbr, @newDate, and @last_incident_date
But you only declare @Last_incident_Nbr and @Last_Incident_date
Add another
updateCommand.Parameters.AddWithValue("@newdate", newDate)
to correct the problem.
================================================== =========
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
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========