This discussion is now closed.
Option Compare Database
Dim I As Integer
Dim x As Integer
Private Sub cmdlogin_Click()
For I = 0 To 3
If x = 0 Then
MsgBox ("Error to many incorrect guesses")
x = 3
End
End If
If (Me.txtusername.Value = "admin") And (Me.txtpassword.Value = "pass") Then
DoCmd.OpenForm "frmShow"
Me.Visible = False
Else
MsgBox ("Error incorrect password entered " & vbCrLf & x & " attempts remaining"), vbExclamation, "Error"
x = x - 1
Exit Sub
End If
Next
End Sub
Private Sub Form_Load()
x = 3
End Sub
Last reply 1 minute ago
Official University College London Applicant Thread for 2024Last reply 7 minutes ago
2023 ** Borders and Enforcement, Crime & Compliance - ICE - Immigration OfficersLast reply 19 minutes ago
Can I do economics degree without a level maths?Last reply 37 minutes ago
BAE systems degree apprenticeships September 2024Last reply 48 minutes ago
Government Social Research Placement interview questionsLast reply 54 minutes ago
Official: University of Bristol A100 2024 Entry ApplicantsLast reply 1 hour ago
Official University of St Andrews Applicant Thread for 2024Last reply 1 hour ago
Standard Chartered Apprenticeships 2024Last reply 1 hour ago
Children to no longer be prescribed puberty blockers, NHS England confirmsLast reply 1 hour ago
Why is the political left now censorious and authoritarian??Last reply 1 hour ago
narrowly missing offer conditionsLast reply 1 week ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 2 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 3 weeks ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 2 months ago
OCR GCSE Computer Science Paper 1 (J277/01) - 19th May 2023 [Exam Chat]Last reply 3 months ago
AQA GCSE Computer Science Paper 2 (8525/2) - 25th May 2023 [Exam Chat]Last reply 5 months ago
AQA GCSE Computer Science Paper 1 (8525/1A, 1B, 1C) - 19th May 2023 [Exam Chat]Last reply 5 months ago
AQA Computer Science NEA and Computer science paper 1 questionLast reply 1 week ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 2 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 3 weeks ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 2 months ago
OCR GCSE Computer Science Paper 1 (J277/01) - 19th May 2023 [Exam Chat]Last reply 3 months ago
AQA GCSE Computer Science Paper 2 (8525/2) - 25th May 2023 [Exam Chat]Last reply 5 months ago
AQA GCSE Computer Science Paper 1 (8525/1A, 1B, 1C) - 19th May 2023 [Exam Chat]Last reply 5 months ago
AQA Computer Science NEA and Computer science paper 1 question