Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/03/2010, 22:13
varTob
 
Fecha de Ingreso: febrero-2010
Mensajes: 7
Antigüedad: 14 años, 3 meses
Puntos: 1
Respuesta: problemas con una checkbox

Prueba ingresando el texto (o letra) en la propiedad Tag del CheckBox

Eje:

CheckBox1.Tag = "texto1";

radioButton2.Tag = "texto2"; etc... Y luego..

Sql = "INSERT INTO Cliente ( nombre, apellido,direccion, mail, mascota, raza, color, señas, fecha_entra, fecha_sale, edad, M, F,sexo, telefono)";
Sql = Sql + "SELECT '" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + textBox6.Text + "','" + textBox7.Text + "','" + textBox8.Text + "','" + textBox9.Text + "','" + textBox1.Text + "','" + dateTimePicker1.Text + "','" + dateTimePicker2.Text + "','" + comboBox1.Text + "','" + radioButton1.Checked + "','" + radioButton2.Tag+ "','" + checkBox1.Tag+ "'," + textBox5.Text + ";"

Saludos

Última edición por varTob; 20/03/2010 a las 22:26