Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Changing Passwords...


Hi everyone!!!!

I am currently writing a program that has only one user. I wan this user to be able to change his/her password. I have separate form with 2 text boxes where the user enters his/he old password and new password. This is the code that i have bee trying to use so far: ("pass" is a global variable)

If UCase(edtOld) = pass Then
pass = UCase(edtNew)
Else
MsgBox "Your old password doesn't match the existin password. Please try again", , "Incorrect Password"
edtOld.SetFocus
End If

Can anyone please help with this small problem?

Thank you!!!

Gwyn




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Changing Passwords
Hey I have a text box, which allows the user to enter a password to move to the next form. The password code is

Private Sub cmdEnterpassword_Click()
'check for correct password
If txtEnterpassword = "password" Then
'place code to here to pass the
'success to the calling sub
'setting a global var is the easiest
LoginSucceeded = True
Me.Hide
Form2.Show
txtEnterpassword = ""
Else
MsgBox "Invalid Password, try again!", , "Login"
txtEnterpassword.SetFocus
SendKeys "{Home}+{End}"
End If
End Sub

I would like a command button on the same sheet that would allow the user to change the password. I would like this to bring up the usual display

Enter current password
Enter new password
Re-Enter new password

Is this possiable

Thanks in advance

G

Changing Passwords
Im a VB newbie, take it easy on me....

Im using the below code to create a user log in, the password is currentley set as 'phool' but how could i modify it to allow a user to change the password by clicking on a button? I really am confused with this


Quote:




Dim password As String
Dim Inputpassword As String
Dim attempt As Integer
password = "phool"
attempt = 0
Do
attempt = attempt + 1
Inputpassword = InputBox("Enter password. This is attempt " & "number " & attempt)
Loop Until (attempt = 3) Or (Inputpassword = password)
If Inputpassword = password Then
MsgBox ("Welcome to Host Manager")
Else
MsgBox ("This password is invalid")
End If

If Inputpassword = password Then
Form2.Show
FRMSplash.Hide
End If

*SOLVED*Changing Passwords
Hello guys

I am making a Policy Editing program which has a password in it. But I want to be able to change the password from within the program. Just by pressing a button and entering a new password. Does anybody have any suggestions or does anybody know how to do this?

Changing Passwords In Access Via DAO
OK Gurus, I need some help with this one.

First of all, I am creating an application in Access 97, which means the VBA I am using is from VB 5.0 (I think!)
The security on the database is user-level, meaning every user belongs to a group and has a login ID and password.

Within my app is an admin form so that users can change their passwords and admins can add users, reset users' passwords to a default value, etc. It is meant to be a trimmed down version of Access' own "User and Group Accounts" form (Tools -> Security -> ...), but without the groups part (the admins will not be able to add or remove groups).

On the admin form is a "Reset Password" button (similar to the "Clear Password" button in Access), with which admins will be able to (doh!!!) reset users' passwords. Unfortunately, the User object's "NewPassword" method (as in DBEngine(0).Groups("Users").Users("Joe").NewPassword) requires the user's old password as it's first agrument. Also, the User object's Password property is write-only; it does not return a value and it can only be used when creating a new user! As a result, it appears that an admin cannot reset a user's password without knowing the old password, which kind-of defeats the purpose of an single-click "Reset Password" button!!

I thought of writing a function that would simply delete and recreate the user (thereby getting access to the Password property), but this is inefficient because then the function would also have to re-add that user to any groups he or she may have belonged to, and his permissions, if any, would need to be reset for each and every object (table, form, macro, etc.) within the application. Also, with this method the admin would not be able to reset his own password without going trough the user-level "change password" form' (Access won't permit a logged-in user to delete his own account).

Any help here would be greatly appreciated!

Changing Passwords...(for One User!)
Hi everyone!

I am writing a program that currently only has one user. I want this user to be able to change his/her password. How do I do this?
I have a separate form with 2 editboxes, one for the old password, one for the new password. This is the code that i have used with no success: ("pass" is a global variable!)

If UCase(edtOld) = pass Then
pass = UCase(edtNew)
Else
MsgBox "Your old password doesn't match the existing password. Please try again", , "Incorrect Password"
edtOld.SetFocus
End If

Can anyone tell me what the problem is?

Thanx

Gwyn

Changing Admin Passwords
I have several (45) pc's all running win 2000. Its about time for me to change my admin password. Instead of going to each box, can VB6 do it over the LAN? (I do have admin account and password) if so could someone point me in the right direction.


Thanks

Changing Local User's Passwords
I am trying to build an app that would allow a user to change the password for their local user account. I have the cusrmgr (sp?) add-on for the computer, but thats command line. I'm hoping for a dll of some sort that would allow me to change this information once a user enters their old and new password? anyone got any ideas?

Changing Local Passwords In A Windows Domain With A VB App
I wrote a program that I use to change the local Administrator or other local account passwords when needed. But all it is is a shell call to the Microsoft CUSRMGR.EXE application. I just pass it the switches i need and it creats a bat file and runs it. But i would like to know if there is a better way to accomplish this without using the shell command?
thanks for any help.

Passwords
Hi i am trying to make a login in vb where you have to register. You type you desired user name and password then re enter your password and vb saves it in a procedure so when you click the command button it takes you to the next page which says details ok. then asks you to login in with your new username and password. when you type it it calls the procedure where you password is stored and checks what you typed against it. if it is correct it goes to the next page but i can't get the procedure to work it won't find it.
can anyone help.
Thanks

VBA, ADO, && Passwords
Hi all,

I think this may be my very first post here, but I visit often just to browse, and offer any help I can (but I'm a newbie, so I just stay out of it most of the time

Let me explain my project, then I'll ask my question. The idea is for my target workbook to display certain data from another workbook...a very large workbook. Since the workbook is so large, I don't want to use workbook.open(), and I don't want to use links either. The workbook I'm pulling the data from uses links....tons of links, thats why its so large. None of the links in that book are connected to the data I'm pulling, so, opening the workbook isn't neccessary for me.

I'm using some ADO code I found on the net ADO Link . This worked perfect! Only one problem...the workbook I'm pulling the data from is PW protected. You need a PW to open the workbook, and then you are prompted to open as read-only.

I used two test workbooks, once as a source workbook, which I saved, and closed with some dummy data. Then I put my code in my target workbook and tested it. Worked great...til...I PW protected my source workbook. Here is the error:


Code:
Microsoft Visual Basic

Run-Time Error '-2147467259 (80004005);:
[Microsoft][ODBC Excel Driver] Could not decrypt file.
Is there a way I can pull data from the workbook w/o using the password, or is there a way I can code this to tell it the password.

Again, I'm avoiding workbook.open, I know you have the option of entering a password, and update links, and read-only - BUT, that workbook is wayyyy too big, takes too long to open, and its possible I'll have muliple users pulling data at the same time.

Any ideas? Thanks for any help, sorry so long

Passwords
I am trying to build a feaure into my system that only allows the user to look at certain sheets after they have logged in,

Is there a way whihc i can do this using any functions in visual basic, in addition would the user be able to change their password once they are logged in, by clicking a change password button??

Any help would be appreciated

thanks

Raj

XML, Passwords And Others ...
Hi all

I've tried to find something that help me, but i dont know where to look for.

I want to access to a PHP site, give a username and password and download a XML file...

Ok, I dont know how to put the username and password... and Im going to use a Inet control (do you think i must use another one?)

Thanks in advance

Passwords.....
i just want to know how to do a password box which allows the user 3 attempt to get the password right, if not the program will end.....thanks !

Passwords
how can you set a text box so that when something is typed in it, it doesn't show what you typed but instead show something like the asterics?

Passwords
Hi again,

I have just managed to put a password control on my project. When the user enters correct pass, the next form is displayed. now i added a button which directs the user back to the main screen. If the user then decides to go to the form again, they must renter this password, however when password form is displayed it is greyed out and no txt can be entered onto the form.

Any ideas why?

Thanks guys

Dave

Getting Passwords
Can anyone help me why this code aint working?

Code:
Private Sub Command1_Click()

With Text1
Select Case UCase(Text1.Text)
Case Is = "****"
LogIn.Hide
frmNew.Show
End Select
End With
End Sub

I want it to be that it pop ups a box asking for a accountname, the correct one is **** at the moment. I will change it later... anyways, i put in **** in it and click the button... nothing happens... know why?

Also, how can i do that if i put in wrong password it pops up a message saying 'Error: Wrong Accountname or IP match'

Passwords
I have a winzip file containing several excel spreadsheets. The winzip file is password protected and I have lost the password - does anyone know if the password is stored anywhere that I can access it?

I also have a seperate excel spreadhsheet that is itself password protected and again the password wont work. Can anyone suggest anything?

They were both stored over a year ago on a network drive. I always use the same password selection so I am puzzled why they wont open for me.

Thanks for your help.

Passwords
How can I create multiple usernames and passwords to limit access to my VB program, where can I store these. . .

Cheers

Passwords In XP
Hi,

i would like to know in which file in XP the passwords are saved.i am planning to save my VB6 program's passwords inside it.(actually,if i can)

Thanks in advance

Passwords
I made a program And i want to put a password before the form opens. Can any1 help me?

Passwords
can anyone tell me what would be the best way to code this.
all i want to do is check that a password is a mixture of letters and numbers, not really bothered about differentiating of upper and lower case.

the password is in a text box.

thanks.

Passwords
My application allows users to click on "Change Password" button and change the password. Can anyone give me some advice on where to store this password? Is it ok to create a variable called password and assign it the value of the current password? Or shall I save the password in an external file? Which one is more safer?

Thanks

Passwords
Is there a way that you can get the password of the current user with Environ() function or another function?

Directrix

Using Passwords
Hi

I'm expecting shortly to have to put a database on a network in a folder that will be password protected (not the database) I will have to install program on client machines..

Is there a way when the program tries to locate the database to enable the user to input the password to access the databases folder or do they need to open the folder first?

Passwords
sorry if this is in the wrong part of the forum

how do you link a database to an if statement for a password, to search

for example,

Private Sub cmdEnter_Click()
Dim Response As Integer

If txtPassword = txtPassword.Tag Then
MsgBox "You Have Passed Security", vbOKOnly + vbExclamation, "Access Granted"
CustomerDetails.Show
Unload Me

Else
Response = MsgBox("Your Password Was Not Correct", vbRetryCancel + vbCritical, "Access Denied")
If Response = vbRetryCancel Then
Form2.Show
txtPassword.SetFocus

Else

End If
End If
End Sub

but i want to add an username and password to this, so that each user can have thier own login details,

how can i link the database to the text boxes to search for a set of login details

Two SQL Passwords
Hello all.

I am creating a little SQL utility that is going to run a quick query to update a field in a SQL database table if there is a date in it.

In our organization I found that there are two different passwords on our systems out in the field.

What my question is, how can I program the two passwords into my utility so that when it runs if it is not the first password, it will check the second one then run my update query.

If anyone can help with this I sure would appreciate it.

Thanks
Garry B

Vba IDE And Passwords
I think I know the answer , but here goes...Is there a way using vba IDE to manipulate the project password? ...all I can get is a return from vbext_pp_locked ...at this point i am left with the sendkey approach, although i may be able to fortify that with some API ....just seems convoluted...tkx ...

Using Passwords
I am creating a software where a password is essential but i want the user to create a password and user name to begin using the software and be able to change there password at anytime. How do i go about creating new users for it?? I would like to have more than one user available to use it. But if its only possible for one user then thats ok.

Please help

Passwords
maybe this isnt the correct area... but since folder passwording is not available in xp... is there a way to turn them on? or maybe create a small vb app to do it ?

thanks

steve

Passwords
Ok.. When you create a password or login box, where do you save the password?

I've only created and app or 2 that have had password protection and I just wrote them to the Registry... Any better suggestions or thoughts?

Passwords
Does Anyone Have A Code For VB 3.0 so that when you go into it it asks for a password in an input box????

Passwords
what is the best way to store passwords?
do you store them in a database (encrypted) or in a textfile (also encrypted)?

how can i do this?

Passwords...
Anyone know how to turn a textbox into a password box so that only *'s show up in it?

IE Passwords
when Internnet Explorer saves your passwords for certan sites where does it save them?

Passwords
Does any 1 know how to make a password form appear whebn you click on a desktop icon? if you do please email me at moocow127@hotmail.com. THNX

Dao && Passwords
Hello, how do I incorporate a password in this..

VB Code:
Public Property Get GetEngRate(i As Integer) '1=mechenghrs 2=electenghrs 3=rateDim rstRate As Recordset ' record set variable Set DbsVacublast = OpenDatabase(PATH) 'setting database object varSet rstRate = DbsVacublast.OpenRecordset("Rates")    rstRate.Index = "PrimaryKey"       rstRate.Seek "=", "description"              GetEngRate = rstRate(i)            Rate = rstRate(3)    rstRate.Close    DbsVacublast.CloseEnd Property

Passwords
Hi!
I was wondering how can I password lock sections of a program. You know how some programs have secret areas where you need a password to open it? Well how can I do that?

Passwords...
any one know how to pass a password to an access data base that has been passworded. Every time that I try to access it, it tels me that I need to pass the password to it. Anyone know how to do that in code. I just can't seem to find the command line.

owen.

Passwords
How do you create a password procedure so that when the user logs in they can create a new username or password? At the moment there is one username and one password, both of which are written in the code.

Passwords
How can i get the password of a access database?

Both 97 and 2000 the designer left the company!!

Passwords
I want to make a passwords to my app.
But I don't mnow where to start.

Can anyone help me?

Passwords
How do I write codes to allow a user entry only by a Password? Where is that password stored for retrieval and verification? What codes do I write to allow the user to change his/her Passwords?
I welcome any assistance.
With thanks.

Regarding Passwords
Hi,
I'm using Visual Basic 6.0(SP3) with Sql Server 7.0. I'm having a table similar to Master Database's Sysxlogins Table where i'm storing the same username and password from Master's Sysxlogins Table. In Visual Basic, when the user enters the username in a text box i want to
retrieve the password from that table and store it in a string variable. Here note that the user is not entering the password. The password in table is stored in varbinary datatype. If i retreived the password from table and assigned it to a variable it returns value ike "?]???????". I want the exact password string here for example if the password is "rahul" then i want "rahul" in the string variable. Is it possible?


Sujatha

Passwords
I have created a spreadsheet in Excel that when opened shows a message box asking for a password. How can I get it so that when the password is entered only stars/asteriks are shown.
Also how can I make it so that if the correct password is not entered after 3 attempts the application is closed down.

Passwords
Can Someone Please Tell Me How To Password Protect A Program You Make By Using A Text Box?

Thanx

Passwords
Can Someone Please Tell Me How To Password Protect A Program You Make By Using A Text Box?

Thanx

Passwords
Hi

Please help me out here......
i'm trying to encorporate the feature of passwords in my application.
there is an adminstrators account(username & password) to create new accounts, and then there are accounts which can access a part of the application to make changes. The new accounts must be saved and also all the changes that have been made.

Could someone please help me .........probably guide me to some code......
Thanx in advance
Ice





Edited by - Ice on 12/1/2002 4:00:57 AM

Um... Passwords?
can anyone help me with my pasword program.

this is my code so far:

Private Sub cmdLogin_Click()

    Dim strName As String
    Dim strPassword As String
    
    strName = Val(txtName.Text)
    
    strPassword = InputBox("Please enter your Password")

End Sub



This is nice a simple at the moment because when it comes to entering the password into the InputBox i can't get the letters to apear as stars...?

i know how to do it normaly (txtPassword.PasswordChar="*") but because the input box isn't avaliable to select so i can't apply it.?

any help would be most apreciated.

Sol.

Passwords(*********)
I have a log in screen and have two text boxes. One is for the username and the other is for the password. I need to know how to make the password show up as ********* when it is typed into the text box instead of seeing the actual password being typed. Thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved