Creating 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 Video