Beruflich Dokumente
Kultur Dokumente
lngMyEmpID = Me.cboEmployee.Value
Else
MsgBox "Password Invalid. Please Try Again", vbOKOnly, _
"Invalid Entry!"
Me.txtPassword.SetFocus
End If
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
Option Compare Database
Dim ID As Integer
If IsNull(Me.txtUserName) Then
Me.txtUserName.SetFocus
Me.txtPassword.SetFocus
Else
Else
TempID = Me.txtUserName.Value
UserName = DLookup("[UserName]", "tblUser", "[UserLogin] = '" &
Me.txtUserName.Value & "'")
DoCmd.Close
Else
Else
End If
End If
End If
End If
End Sub
Private Sub Form_Load()
Me.txtUserName.SetFocus
End Sub