Ask Experts Questions for FREE Help !
Ask
    CoverSix's Avatar
    CoverSix Posts: 1, Reputation: 1
    New Member
     
    #1

    Jan 31, 2008, 11:58 AM
    Password change forms
    I secured a form in my Access database with the following code:

    Private Sub Command48_Click()
    'Attached to On Click event of Command48

    Dim strPasswd

    strPasswd = InputBox("Enter Password", "Restricted Form")

    'Check to see if there is any entry made to input box, or if
    'cancel button is pressed. If no entry made then exit sub.

    If strPasswd = "" Or strPasswd = Empty Then
    MsgBox "No Input Provided", vbInformation, "Required Data"
    Exit Sub
    End If

    'If correct password is entered open Secure Personnel form
    'If incorrect password entered give message and exit sub

    If strPasswd = "******" Then
    DoCmd.OpenForm "Secure_Form", acNormal

    Else
    MsgBox "Access Denied", vbOKOnly, "Important Information"
    Exit Sub
    End If
    End Sub

    My boss loved this, then asked me how he could change the password without having to crack open the code to do it. So now I need to modify the above code to include a functionality to change the password.

    I'm not a programmer, and the little VB I know I learned in school over a year ago. Can anyone provide a solution? Thanks!
    kabia's Avatar
    kabia Posts: 9, Reputation: 2
    New Member
     
    #2

    Feb 22, 2008, 04:20 PM
    You could read / write to an Ini file and compare what was in the Ini file to what was typed in...
    Or just create a file that it opens and reads to compare...
    Not recommended if you were to package and deploy...
    But in a small environment could be OK... All your boss would need to do is open the file and write the new password in...
    With an ini file you could encrypt it... so then you would need to decrypt it within your program, so have an admin section in your program to setup passwords etc...
    Hope this gave you some ideas anyway..

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

W-2 forms [ 2 Answers ]

I work to part-time jobs, one part-time I work I'm working about 13hours a week and the other job is about 30 hrs per week. Just wondering what should I claim on my w-2 forms. Some people have told me claim zero on both. I just don't know what to claim. Can anybody help me:confused:

F1-OPT-H1B status change: Which tax forms to use? [ 2 Answers ]

Hi, For the calendar year 2006, I was a student (F1) from Jan 2006 to May 2006. Then I worked full time on OPT from June 2006 to 24th Oct 2006 Now I am on H1B since 25th October. I came to USA on f1 Visa in January 2004. I have been on H1B for about 65 days in the year 2006. My social...

W2 forms [ 1 Answers ]

In California how long does an employer have to issue your W2 form to you?

No W2 forms [ 2 Answers ]

Does anyone know how I can file a state tax return without w2 forms I sent a 4506 form to IRS requesting copies. They sent my check back and said this info was unavailable due to 7 years had past and they no longer have these records. I lost all personal papers in a tornado. I can't remember all...

What forms [ 3 Answers ]

I entered USA on F1 in Aug 2001. 2005 Aug I changed to H1B from F1 (OPT). What tax forms do I need to file for 2005 year?


View more questions Search