Bonjour, j'ai besoin de votre aide, j'ai une combobox (ComboBox_paiement) qui contient 3 éléments (CASH, CREDIT et DEPOT VENTE), lorsque l'élément sélectionné dans la combobox est CREDIT la TextBoxecheance est visible. ce que j'aimerai c'est que TextBoxecheance soit visible lorsque l'élément sélectionné est CREDIT ou DEPOT VENTE)
le code actuel est :
Private Sub ComboBox_paiement_Change()
TextBoxecheance.Visible = (ComboBox_paiement.Value = "CREDIT")
Labeldateecheance.Visible = (ComboBox_paiement.Value = "CREDIT")
End Sub
j'ai esssayé ca mais ca ne marche pas
Private Sub ComboBox_paiement_Change()
TextBoxecheance.Visible = (ComboBox_paiement.Value = "CREDIT" or ComboBox_paiement.Value = "DEPOT_VENTE")
Labeldateecheance.Visible = (ComboBox_paiement.Value = "CREDIT") or (ComboBox_paiement.Value = "DEPOT_VENTE")
End Sub
merci pour votre aide