Password for Form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rgsw
    New Member
    • Jul 2006
    • 29

    Password for Form

    Hi-
    Is it possible to create a password for individual form in database? If so, how?
    Thanks
  • MMcCarthy
    Recognized Expert MVP
    • Aug 2006
    • 14387

    #2
    In the Form Load event ask user to enter password.

    Dim myPassword as String
    Dim userEntry as String

    myPassword = "AnyTextVau e" ' set this to the password you want
    userEntry = InputBox("Enter Password:")

    If Trim(userEntry) <> mypassword Then
    DoCmd.Close
    End if

    This is a simple workaround if you need something more secure go to the following msdn site.




    Originally posted by rgsw
    Hi-
    Is it possible to create a password for individual form in database? If so, how?
    Thanks

    Comment

    • rgsw
      New Member
      • Jul 2006
      • 29

      #3
      Originally posted by mmccarthy
      In the Form Load event ask user to enter password.

      Dim myPassword as String
      Dim userEntry as String

      myPassword = "AnyTextVau e" ' set this to the password you want
      userEntry = InputBox("Enter Password:")

      If Trim(userEntry) <> mypassword Then
      DoCmd.Close
      End if

      This is a simple workaround if you need something more secure go to the following msdn site.

      http://support.microsoft.com/kb/209871/en-us
      That work, thanks again.

      Comment

      Working...