Bonjour je souhaiterai quand je selectionne "Chape béton" dans la combobox cboNatparoi limiter les valeurs dans cboEpaisParoi à 2;3;4;5;6;7;8;9 et 10 et de 10 à 30 dans le cas contraire

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
For i = 0 To 40
    Me.cboSurFen.AddItem i
    If i < 21 Then
        Me.cboEpaisParoi.AddItem 10 + i
        Me.cboEpaisAsso.AddItem 10 + i
        Me.cboEpaisVoile.AddItem 10 + i
        Me.cboEpaisMit.AddItem 10 + i
     End If
Next i
j'ai fait cmme ça mais ça marche pas

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 for i=0 To 40 
   if cboNatParoi.text="Chape béton" then
     if i<8 then
     Me.cboEpaisParoi.AddItem 2 + i
     end if
   else
     if i<21 then
     Me.cboEpaisParoi.AddItem 10 + i
     end if 
   end if
next i