Solved

Password login form

Posted on 2014-10-06
3
186 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2016 - query 23 59
Programmer 14 48
Need to Populate a MS Access Table via VBA Code 3 29
Dirty form - conditional formatting 5 21
This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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