This slightly modified version of your code seems to solve the issue:
Code:
Private Sub Command9_Click()
Dim lgID As Long
'Check to see if data is entered into the UserName combo box
If IsNull(Employee) Or Employee = "" Then
MsgBox "You must enter a User Name.", vbOKOnly, "Required Data"
Employee.SetFocus
Exit Sub
End If
'Check to see if data is entered into the password box
If IsNull(Password) Or Password = "" Then
MsgBox "You must enter a Password.", vbOKOnly, "Required Data"
Password.SetFocus
Exit Sub
End If
'Check value of password in tblEmployees to see if this
'matches value chosen in combo box
If Password.Value = DLookup("[Password]", "Users", _
"[LoginID] =" & Employee.Value) Then
LoginID = Employee.Value
lgID = LoginID
'Hide logon form and open splash screen
Visible = True
DoCmd.OpenForm "Sponsors"
Else
MsgBox "Password Invalid. Please Try Again", vbOKOnly, _
"Invalid Entry!"
Password.SetFocus
End If
DoCmd.Close acForm, "LoginForm", acSaveNo
'Filter by region
Form_Sponsors.Counterparties_Subform1.Controls(8) = DLookup("[Region]", "Users", "[LoginID] =" & lgID)
'If User Enters incorrect password 3 times database will shutdown
intLogonAttempts = intLogonAttempts + 1
If intLogonAttempts > 3 Then
MsgBox "You do not have access to this database.Please contact admin.", _
vbCritical, "Restricted Access!"
Application.Quit
End If
End Sub