1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| If Not rs.EOF Then
User_id = rs("Initiales").Value
User_groupe = rs("Type_utilisateur").Value
If User_groupe = "Administrateur" Then
DoCmd.OpenForm "Menu_gestionnaire", acNormal, , , , acWindowNormal
DoCmd.Close acForm, "Boîte connexion"
Else
DoCmd.OpenForm "Formulaire des pointages", acNormal, , , , acWindowNormal 'DoCmd.GoToRecord , , acNewRec
'DoCmd.Close acForm, "Boîte connexion"
End If
Else
MsgBox "Mot de passe incorrect ", vbInformation, "Connexion"
i = i + 1
End If |
Partager