Results 1 to 5 of 5
  1. #1
    jj1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    128

    Unhappy If someone Forget Password. Send them their Previous Password

    I need to create a form in which people can select their username and hit ok and their previous password can be looked up and email could be send to them with their previous password. Please help urgently.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Usernames are 'selected' from a combobox? So anyone could select any username and get any password? If you want some security (Access is very weak in this regard) then don't use combobox to 'select' username. Like a Windows login, user types username and password into textboxes.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    jj1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    128
    but how to create it

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Create a user table. tblUserSecurity_Sec to store original user names and passwords.
    Create a Lost Password table. tblLostPassword

    tblUserSecurity_sec:


    recid AutoNumber Counter.
    lastsignon Date/Time Date User Last Signed On.
    pw Text Users Session Password. Input mask Password
    userID Text User Name Primary Key.
    dev yes/No Is user a Developer?
    admn yes/no Is user an Asdministrator?
    sprvsr yes/no Is user a Supervisor?
    data yes/no Is user a Data Entry Person?
    reado yes/no Is user a Read Only Person?

    tblLostPassword:
    LostPswdID AutoNumber Primary Key.
    lastsignon Date/Time Date User Last Changed Password.
    pw text Users Session Password.
    userID Text Users Login Name.



    This would be just the beginning of your password design.
    Next,create your form and add code.

    HTH

    EDIT: If I'm not mistaken, there is a demo on how to create one on here and maybe a sample. I have not checked. Have you Googled or looked on YouTube?
    Last edited by burrina; 05-10-2014 at 12:36 PM. Reason: Sample Database

  5. #5
    jj1 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    128
    Yes I tried but didn't got one. Thanks for your inputs. I have made one code but i am stuck how to print the value of my password.

    If you can help.

    Here is my code

    Dim st As String
    Dim rs As dao.Recordset
    Dim strHTMLBody As String
    Dim strPassword As String


    st = "select * from tblUser where txtEmailAddress = '" & cmbEmail & "'"
    Set rs = CurrentDb.OpenRecordset(st, dbOpenSnapshot)
    MsgBox "You will receive your Previous Password in your mailBox"


    'MsgBox rs!Password
    'MsgBox rs!FName


    Dim oApp As Outlook.Application
    Dim oMail As MailItem
    Set oApp = CreateObject("Outlook.application")


    Set oMail = oApp.CreateItem(olMailItem)
    oMail.Body = "Your Password"
    strHTMLBody = strHTMLBody & "Password: " & strPassword & "<br/>"
    strHTMLBody = strHTMLBody & "Sent Date: " & date & "<br/><br/>"
    oMail.Subject = "Here is Your Previous Password"
    oMail.To = rs!txtEmailAddress
    oMail.Send
    Set oMail = Nothing
    Set oApp = Nothing


    End Sub

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Forget Password Form
    By jj1 in forum Access
    Replies: 1
    Last Post: 05-09-2014, 09:52 AM
  2. Replies: 2
    Last Post: 12-24-2012, 10:15 PM
  3. Replies: 1
    Last Post: 07-24-2012, 06:10 PM
  4. Replies: 1
    Last Post: 06-22-2012, 08:05 AM
  5. Change from old password to new password
    By richy in forum Security
    Replies: 0
    Last Post: 11-17-2005, 05:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums