With rstAvoir
.ActiveConnection = connexion
.CursorType = adOpenStatic
.LockType = adLockOptimistic
.Open "Select Code_MC From Avoir where (Code_Equipe= " & Feuille_Démarrage.Nom_Equipe.ItemData(Feuille_Démarrage.Nom_Equipe.ListIndex) & ") and (Code_Vacation=" & Feuille_Démarrage.Libellé_Vac.ItemData(Feuille_Démarrage.Libellé_Vac.ListIndex) & ") and (Numero_Agent=" & Feuille_Démarrage.Nom_Ctq_Ou_Adjoint.ItemData(Feuille_Démarrage.Nom_Ctq_Ou_Adjoint.ListIndex) & ") and (Date_Vacation=#" & Feuille_Démarrage.Label9.Caption & "#)"
If !Code_MC = Null Then
MsgBox ("Code_MC null")
Else
MsgBox ("Code MC n'est pas null")
End If
.Close
End With |