Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Affichage conditionnel de champs

2 réponses
Avatar
Jean P
Bonjour à vous tous,

Je ne sais pas si ce que je veux faire est possible.

Table:
champs # 1: Nombre de distributrices (numérique)
champs # 2: Distributrice # 1 (texte)
champs # 3: Distributrice # 2 (texte)
champs # 4: Distributrice # 3 (texte)
champs # 5: Distributrice # 4 (texte)

Je voudrais créer un formulaire qui affiche certains champs et ce,
conditionnellement à un nombre saisie dans un autre champs.

Formulaire:
champs: Nombre de distributrices: 2
champs: Distributrice # 1 (conditionnel - visible)
champs: Distributrice # 2 (conditionnel - visible)
champs: Distributrice # 3 (conditionnel - invisible)
champs: Distributrice # 4 (conditionnel - invisible)

--
Merci beaucoup

Jean P.

2 réponses

Avatar
Nobodyisperfect
Salut Jean-Pierre,

C'est du genre

If NombreDeDistributrices.Value = 2 then
Distributrice1.Visible = True
Distributrice2.Visible = True
Distributrice3.Visible = False
Distributrice4.Visible = False
Else (ou ElseIf)
etc...
End If

@+
Olivier
Avatar
Jean P
Bonjour Olivier,

Merci pour ton aide mais je ne comprend pas exactement ou je dois mettre ce
code.

Peux-tu encore me donner un coup de main ?

--
Merci beaucoup

Jean P.



Salut Jean-Pierre,

C'est du genre

If NombreDeDistributrices.Value = 2 then
Distributrice1.Visible = True
Distributrice2.Visible = True
Distributrice3.Visible = False
Distributrice4.Visible = False
Else (ou ElseIf)
etc...
End If

@+
Olivier