Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Password login form

Posted on 2014-10-06
3
187 Views
Last Modified: 2014-10-07
I would like to develop a password login form.  I have a table setup with UserName, and Password.  Everyone will have an initial password of "password".  But the first time they log in to the database I want them to have to change their ready-made password.  Then once they've established their new password it will be their password until they change it.  So I also need a way for them to change their password.

One more thing... they should get three attempts to enter the correct password.  If they don't enter their correct password after three attempts I want the database to close.

Has anyone done this before?

--Steve
0
Comment
Question by:SteveL13
3 Comments
 
LVL 27

Accepted Solution

by:
MacroShadow earned 250 total points
ID: 40364657
While it is possible and has been done numerous times, this method isn't very secure. For instance, reading the password from the table.

A quick google search will give you several solutions.

Attached is a sample I found on the net ages ago.
SecurityDemo.zip
0
 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 250 total points
ID: 40364684
...and here is some brute force code to restrict the login attempts to 3

Dim bytCounter As Single

Do Until bytCounter = 3
    If InputBox("Enter Password") <> "Password" Then
        MsgBox "Incorrect Password"
        bytCounter = bytCounter + 1
        If bytCounter = 3 Then
            MsgBox "you failed to login after 3 attempts," & vbCrLf & "...please contact your supervisor"
            Exit Sub
        End If
    Else
        MsgBox "login successful"
        Exit Do
    End If
Loop

Open in new window

0
 

Author Closing Comment

by:SteveL13
ID: 40366597
Thank you to both of you.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question