-
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
-
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
-
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.
-
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
-
By dcampo in forum ASP.NET
Replies: 2
Last Post: 02-08-2007, 01:20 PM
-
By RameshSiva in forum VB Classic
Replies: 1
Last Post: 02-23-2005, 09:06 AM
-
By Ashwini in forum VB Classic
Replies: 22
Last Post: 03-05-2001, 08:01 AM
-
By Ashwini in forum VB Classic
Replies: 0
Last Post: 02-13-2001, 02: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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks