2.26 Password Login Form / screen using VBA in AccessCreating a Login Form and password protecting your database Here's the code I used: Username.SetFocus If Username = "user1" And Password = "user1" Then MsgBox "Access Granted", vbInformation, "CD Shop" MsgBox "Welcome", vbInformation, "CD Shop" DoCmd.Close DoCmd.OpenForm "F_Switchboard" Else MsgBox "Please re-enter your Username and Password." End If code pour embarquer la vidéo : >>> http://www.youtube.com/embed/pT2boGE-bAg <<< |