Hi.

I have this code:

  cId = fila(cmbCodigo.SelectedIndex).ToString

  cMedida = fila(cmbMedida.SelectedIndex).ToString

  cDenomina = fila(cmbDenominacion.SelectedIndex).ToString

  oComando.CommandText = "INSERT INTO preciodeno(id, medida, denomina ) " _

  & "VALUES(?cId, ?cMedida, ?cDenomina)"

  oComando.Parameters.Add(New MySqlParameter("?cId", Data.SqlDbType.VarChar, 
10)).Value = "201"



  But when i run it, i received this error:

      A first chance exception of type 'MySql.Data.MySqlClient.MySqlException' 
occurred in MySql.Data.dll



  why?

  Thank“s

Reply via email to