Dim Ctl as Control Dim NBChecked as integer For each Ctl in me.controls If TypeOf Ctl is CheckBox Then If Ctl.Value = vbchecked then NBChecked = NBChecked + 1 End If End If Next Ctl If NBChecked < 5 then MSGBOX "Nombre de case cochées insuffisant." else MSGBOX "suffisament de cases cochées" endif
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question