+ Reply to Thread
Results 1 to 5 of 5

Correct password not being read in a userform

  1. #1
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Correct password not being read in a userform

    hi,

    i have created a login form which ask for the username and password. The user's name and passwords are stored in sheet named "Config"...specifically Users Name in Column A then passwords in Column B....Can you please provide correction to the code I have below?

    Please Login or Register  to view this content.
    Regards,

    stoey
    Last edited by stoey; 10-14-2011 at 02:44 PM.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Correct password not being read in a userform

    Is txtuser a Public variable? Normally, one would ask for the password in a textbox control and use the passwordchar property.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Re: Correct password not being read in a userform

    hi ken,

    txtuser is a name of the textbox not a public variable as well...just for an added info...inside sheet "config" under column A rows 1 to 20, user names are stored, while under column b rows 1 to 20 password of the users names are stored...i tried your modified code but it didn't work..any other idea?

    thanks,

    stoey

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Correct password not being read in a userform

    stoey,

    If txtUser is the name of the textbox that the username is entered into and txtPwd is the name of the textbox that the password is entered into, the following should work for the Login button:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Contributor
    Join Date
    08-07-2008
    Location
    United States
    MS-Off Ver
    Microsoft Office 2003
    Posts
    362

    Re: Correct password not being read in a userform

    that worked perfectly tiger! thanks a lot

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1