Can someone please help me, I am having problems getting the following code to work with access 2010:
Option Compare Database
Private Sub Login_Click()
Username.SetFocus
If Username = "marsdenj" And Password = "a" Then
MsgBox "Welcome", vbInformation, "VidShop | Staff Only"
DoCmd.Close...