Warning 1 'Public Function Add(parameterName As String, value As Object) As System.Data.OleDb.OleDbParameter' is obsolete: 'Add(String parameterName, Object value) has been deprecated. Use AddWithValue(String parameterName, Object value). .NET Framework Developer Center' C:\Users\kmccolgan\Documents\Visual Studio 2005\Projects\DepoLedger3.1\DepoLedger2\mod_gbl.vb 3919 13 DepoLedger3
The AddWithValue method was added in .NET 2.0. Previously the same functionality was provided by an overload of the Add method. That overload has been deprecated.You know I've wondered the same thing, and after reading up on it I somewhat understood, but I think the question may have come from a warning that is given (At least to me) by VS2005, it's why I looked it up, for sake of not getting the below warning I changed my code to AddWithValue.
After reading this post I'm going to go back and see how screwed up things are in my project...
Oh the fun...
Edit : don't bother with the link either, its been moved or removed