Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Jul 2001
    Posts
    280
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Open with password (Access 2000)

    How can i open a form with a password ?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Open with password (Access 2000)

    For very simple (and very easily broken) security, you could use code in the On Open event of the form:

    Private Sub Form_Open(Cancel As Integer)
    Dim strPassword As String
    strPassword = InputBox("Please enter your password")
    If Not strPassword = "Secret" Then
    MsgBox "You're an impostor!", vbExclamation
    Cancel = True
    End If
    End Sub

    User-level security is more robust. See WendellB’s tutorial The Secrets of Security.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •