Ajout enregistrement type boolean VB ACCESS

hajarette Messages postés 125 Date d'inscription   Statut Membre Dernière intervention   -  
hajarette Messages postés 125 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,

je veux faire un ajout d'un enregistrement avec type boolean
je travail avec VB2008 et ACCESS pour la base de données



Structure de la table 'Gh_Type_Chambre '
A voir également:

2 réponses

hajarette Messages postés 125 Date d'inscription   Statut Membre Dernière intervention   16
 
resolu :

voila la correction , si jamais qq1 a le meme probleme

If Soumis_Tarification.Checked = True Then
            conComm = New OleDb.OleDbCommand("INSERT INTO Gh_Type_Chambre (ID_Type_Chambre,Libelle,Soumis_Tarification) VALUES('" & ligne("ID_Type_Chambre") & "','" & ligne("Libelle") & "',true)", con)
            conComm.ExecuteNonQuery()
        ElseIf Soumis_Tarification.Checked = False Then
            conComm = New OleDb.OleDbCommand("INSERT INTO Gh_Type_Chambre (ID_Type_Chambre,Libelle,Soumis_Tarification) VALUES('" & ligne("ID_Type_Chambre") & "','" & ligne("Libelle") & "',False)", con)
            conComm.ExecuteNonQuery()
        End If
0
hajarette Messages postés 125 Date d'inscription   Statut Membre Dernière intervention   16
 
je veux faire resolu comme statut , mais ca ne marche pas :)
0