![]() |
| ||
| need help with user and password hi can anyone help me how to compare user and password from a database like access... for example i have registered a user and password in access then when i input the user to VB and the password it will compare if the user exist and if the password is right for that existing user.... just like a log in system...:cheesy: |
| ||
| Re: need help with user and password Well, I can't go into specifics because I don't know too much about database programming, but I can take a stab at what you'll need to do in order to make it work. 1. Search the database for the entered user name's record. If no match, display a "wrong username" error message. If there is a match: 2. Read that whole user name/password record from the database. 3. Compare the password field to the entered password. If no match, display a "wrong password" error message. If there is a match: 4. Method is complete. |
| ||
| Re: need help with user and password what i mean is what can i use? for example if cbouser.txt = "the user in the database" then blah what can i use for the user choosed in the combo box to be compared in the databassed i made so that it will check if its valid or not...what im trying to make is that it has multiple user that can access to it and differend password each..thanks |
| ||
| Re: need help with user and password try this: databaseName.Open "Select * from TableUserPass where FieldUser like '" & comboUser.text & "'and FieldPass like '" & textPass.text & "',connection,3,3 //Put this in your command button// |
| ||
| Re: need help with user and password Did you get your simple password system working? I have a similar task: I want certain passwords to open form A and certain passwords to open form B.\ Can you help? |
| ||
| Re: need help with user and password Quote:
Start a new thread (since this one is darkmessenger's) and explain in detail what you need. |
| ||
| Re: need help with user and password Quote:
Hi, may i ask what's the connection for and the 3,3 for? i'm having the same problem. im trying to use what u suggested. thanks! |
| ||
| Re: need help with user and password ' Well this is a litle example of how to block an user in a system it depend on the way you want 'to do it, because if you want to block an id who put 3 times a wrong password you have to be 'sure if it is the same id he is trying that`s the reason why y block the user ' textbox after he put the rigth id, why i do it to this way? just to show that you can do everything 'you want but you have to know What do you want to do! so you can mix thing to get a better 'login, 'but that's your job! i hope this help you! ' first you need to textbox named TxtUser and TxtPassword Dim cn As DAO.Database, rs As DAO.Recordset, intent As Integer |
| ||
| Re: need help with user and password |
| All times are GMT -4. The time now is 6:44 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC