Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim User As String
- Dim UserLevel As Integer
- Dim TempPass As String
- Dim ID As Integer
- Dim UserName As String
- Dim TempID As String
- If IsNull(Me.txtUserName) Then
- MsgBox "Please enter UserName", vbInformation, "Username required"
- Me.txtUserName.SetFocus
- ElseIf IsNull(Me.txtPassword) Then
- MsgBox "Please enter Password", vbInformation, "Password required"
- Me.txtPassword.SetFocus
- Else
- If (IsNull(DLookup("UserLogin", "tblUser", "UserLogin = '" & Me.txtUserName.Value & "' And UserPassword = '" & Me.txtPassword.Value & "'"))) Then
- MsgBox "Invalid Username or Password!"
- Else
- TempID = Me.txtUserName.Value
- UserName = DLookup("[UserName]", "tblUser", "[UserLogin] = '" & Me.txtUserName.Value & "'")
- End If
- End If
- End If
Add Comment
Please, Sign In to add comment