1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
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=#" & Format(Feuille_Démarrage.Label9.Caption, "dd/mm/yyyy") & "#)"
If IsNull(!Code_MC) Then 'Si le Code_MC est Null alors
MsgBox ("Code_MC null")
Else
MsgBox ("Code MC n'est pas null")
End If
.Close
End With |