Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2003
    Location
    London
    Posts
    5

    Urgent VBA help needed!

    Hi,

    I am studying A-Level computing and i need to work out a simple password code (for an access database) that will open when the database is opened... I have done...

    Private Sub Form_Load()
    Dim password, response
    response = InputBox("Type your password here")
    Title = "Password Entry"
    If password = response Then
    msgbox = ("Password Correct")
    Else
    msgbox = ("Password Incorrect")
    End If

    End Sub

    But its not working Can anyone show me how to correct this, tell me if ive done it totally wrong or show me a different way to do it?

    Help much appreciated!

    Nuke

  2. #2
    Join Date
    Jan 2004
    Posts
    406
    The "password" variable is always empty. I think you may have meant to put password = "Password Entry" instead of Title = "Password Entry".

Posting Permissions

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