Instructions ifthen

Résolu
Bonjour,

Je voulais savoir s'il était possible à partir d'une fonction Ifthen de produire plusieurs instructions ou résultat.
Par exemple : If then NJ = 0 And Natsup = "" Then
TextBox99 = 0 And TextBox98= 0
End If

Est ce correct?

Merci

2 réponses

  1. Salut,

    En mettant sur deux lignes et sans le AND ca devrait fonctionner
     If NJ = 0 And Natsup = "" Then 
    TextBox99 = 0 
    TextBox98= 0 
    End If