Advertisement
Guest User

Untitled

a guest
Dec 13th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Private Sub Command1_Click()
  2. On Error GoTo Command1_Click_Err
  3.  
  4. If (TextUsername = "Daniel") Then
  5. If (TextPassword = "Daniel") Then
  6. DoCmd.Close , ""
  7. Else
  8. Beep
  9. MsgBox "Wrong username or password", vbOKOnly, ""
  10. End If
  11. Else
  12. Beep
  13. MsgBox "Wrong username or password", vbOKOnly, ""
  14. End If
  15.  
  16.  
  17. Command1_Click_Exit:
  18. Exit Sub
  19.  
  20. Command1_Click_Err:
  21. MsgBox Error$
  22. Resume Command1_Click_Exit
  23.  
  24. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement