Userform in Excel with Remember Password and User id option or check button


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Userform in Excel with Remember Password and User id option or check button

  1. #1
    Join Date
    Sep 2009
    Posts
    12

    Userform in Excel with Remember Password and User id option or check button

    Hi All,

    I have userform in excel which asks user to enter user id and password. I want a to have "Remember Me" check button on my userform which will remember user details and he wouldn't have to enter user id and password again and again. Can please provide me with an example code.

    Thanks a lot for your help in advance

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Is the userid the same as the windows login?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Sep 2009
    Posts
    12

    Userform in Excel with Remember Password and User id option or check button

    No it's not necessary, actually i will require 2 userforms one in which the userid will be similar to the xp userid of the user and second in which the userid will be same as email id of the user.

    Thanks for your help in advance.

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    You have to have some way of knowing who is at the computer calling up your application before anyone does any logging, or "Remember Me" just isn't going to work.

    If you you have a database table with username, password and remember me fields and the username is the same as the windows login, then you could, in the click event of the "Remember Me" checkbox, populate the rememeber me field with a Y that corresponds to the username.

    The next time the application is executed, before the login, you could grab the windows login and use it in a SQL SELECT statement in which you want the remember me field for the username = windows login.

    If the remember me field has a Y, then just log the person in else display the login screen.

    If you have unique usernames then you would have to have the person tell you what they username is so you could check to see if remember me had been checked. All that is going to do is stop them from having to enter their password and that really isn't a true "remember me"

    What you could do is log the name of the computer...but...that would mean that ANYONE sitting at the computer would be auto logged if remember me is checked. That isn't something I would care for but it is an option.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Login and user password Oracle
    By dcampo in forum ASP.NET
    Replies: 2
    Last Post: 02-08-2007, 02:20 PM
  2. Replies: 1
    Last Post: 02-23-2005, 10:06 AM
  3. Replies: 22
    Last Post: 03-05-2001, 09:01 AM
  4. Replies: 0
    Last Post: 02-13-2001, 03:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center