I have the following code:
When I run the ds.Update command, I'm not getting an error but its not updating the record. I'd like to see what values are being used for the parameters when its bombing out. Any way to do this?
Code:
sSql = "UPDATE tblShippers SET ShipperKey = ?, " & _
"Description = ?, " & _
"MaxWeight = ?, " & _
"TStamp = '" & Now() & "' " & _
" WHERE ShipperUID = ?"
da.UpdateCommand = New OleDbCommand(sSql, Conn)
da.UpdateCommand.Parameters.Add("@ShipperKey", OleDbType.Char, 10, "ShipperKey")
da.UpdateCommand.Parameters.Add("@Description", OleDbType.Char, 100, "Description")
da.UpdateCommand.Parameters.Add("@MaxWeight", OleDbType.Double, "MaxWeight")
da.UpdateCommand.Parameters.Add("@oldShipperUID", OleDbType.Integer, "ShipperUID").SourceVersion = DataRowVersion.Original
When I run the ds.Update command, I'm not getting an error but its not updating the record. I'd like to see what values are being used for the parameters when its bombing out. Any way to do this?