bonjour ,

dans mon programme j'ai une requete d'ajout

dans ma bdd access j'ai un champ " discotheque " de type OUI/NON

je voudrai dans mon programme je coche une checkedbox et si c'est coché ça envoie oui et ça met uen case cocher dans access quoi

la ça ne marche pas j'ai mis true , j'ai mis une variable j'ai mi une checkedbox1.checked , rien ne passe , et les autre champs marche je l'ai ai tester

Code : Sélectionner tout - Visualiser dans une fenêtre à part
modificationbdd("Insert into tblhotelss(GenreDestination,NomHotel,Payshotel,VilleHotel,Adressehotel,Descriptionhotel,Discotheque) VALUES ('" + ComboBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "'  ,'" + TextBox6.Text + "','" + True + "')")
ou encore

Code : Sélectionner tout - Visualiser dans une fenêtre à part
modificationbdd("Insert into tblhotelss(GenreDestination,NomHotel,Payshotel,VilleHotel,Adressehotel,Descriptionhotel,Discotheque) VALUES ('" + ComboBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "'  ,'" + TextBox6.Text + "','" + checkedbox1.checked + "')")
comment je peut faire?

merci