M
Manuel Canas
Hello there,
this is the piece of code that if giving problems right now;
cnSQL = New SqlConnection(ConnectionString)
**** strSQL = "UPDATE tb_product SET (ProductID = @cProductID, Code = @Code,
ServiceName = @ServiceName, Price = @Price " & _
"WHERE ProductID = @cProductID)" ****
cmSQL = New SqlCommand(strSQL, cnSQL)
cmSQL.Parameters.Add("@cProductID", SqlDbType.Int).Value = txtProductID.Text
cmSQL.Parameters.Add("@Code", SqlDbType.Char).Value = txtServiceCode.Text
cmSQL.Parameters.Add("@ServiceName", SqlDbType.Char).Value =
txtServiceName.Text
cmSQL.Parameters.Add("@Price", SqlDbType.Money).Value = txtPrice.Text
Can anybody tell me please why am I getting an general error saying that the
input String is not in the correct format?
Thanks very much,
Manny
this is the piece of code that if giving problems right now;
cnSQL = New SqlConnection(ConnectionString)
**** strSQL = "UPDATE tb_product SET (ProductID = @cProductID, Code = @Code,
ServiceName = @ServiceName, Price = @Price " & _
"WHERE ProductID = @cProductID)" ****
cmSQL = New SqlCommand(strSQL, cnSQL)
cmSQL.Parameters.Add("@cProductID", SqlDbType.Int).Value = txtProductID.Text
cmSQL.Parameters.Add("@Code", SqlDbType.Char).Value = txtServiceCode.Text
cmSQL.Parameters.Add("@ServiceName", SqlDbType.Char).Value =
txtServiceName.Text
cmSQL.Parameters.Add("@Price", SqlDbType.Money).Value = txtPrice.Text
Can anybody tell me please why am I getting an general error saying that the
input String is not in the correct format?
Thanks very much,
Manny