M626
Programmer
- Mar 13, 2002
- 299
I want a simple Password protectection from elimenating a app from being closed. Reguardless of what I do it still closes the app.
Private Sub Form_Unload(Cancel As Integer)
Dim EX As String
EX = InputBox("Please Enter Administator Password to Exit?", "Q&A"
If EX = "123" Then
Set db = Nothing
db.Close
End
Else
Call setf 'Sets focus to textbox
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
Dim EX As String
EX = InputBox("Please Enter Administator Password to Exit?", "Q&A"
If EX = "123" Then
Set db = Nothing
db.Close
End
Else
Call setf 'Sets focus to textbox
End If
End Sub