473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Password verification

I'm using Ms-access 2003.I have a table called users it has two fields called Username and password.I have created a form called security interface.where the user enters the username and password.Can you check the following code.it is not working.I want the code to verify if the entered password and username is correct and open a form or else tell the user to re-enter.

Dim STDOCNAME As String
Dim stuser_login As String
Cmb_User.SetFocus
Setrs = Me.RecordsetClone = Me![Cmb_User] & "'"
Me.Bookmark = rs.Bookmark
Verify = Me.Password
STDOCNAME = "WELCOME TO CONTRACTS MANEGEMNT SYSTEM"
DoCmd.OpenForm STDOCNAME, , , stuser_login

If Fld_PASSWORD = Verify Then
If Fld_Username = Verify Then

If UCase(Fld_Username) = "HENDRINA" Then
If UCase(Fld_PASSWORD) = "JOD" Then


Else
MsgBox "Incorrect password"
End If
End If
End If
End If
Oct 19 '07 #1
1 1671
jrtox
89
I'm using Ms-access 2003.I have a table called users it has two fields called Username and password.I have created a form called security interface.where the user enters the username and password.Can you check the following code.it is not working.I want the code to verify if the entered password and username is correct and open a form or else tell the user to re-enter.

Dim STDOCNAME As String
Dim stuser_login As String
Cmb_User.SetFocus
Setrs = Me.RecordsetClone = Me![Cmb_User] & "'"
Me.Bookmark = rs.Bookmark
Verify = Me.Password
STDOCNAME = "WELCOME TO CONTRACTS MANEGEMNT SYSTEM"
DoCmd.OpenForm STDOCNAME, , , stuser_login

If Fld_PASSWORD = Verify Then
If Fld_Username = Verify Then

If UCase(Fld_Username) = "HENDRINA" Then
If UCase(Fld_PASSWORD) = "JOD" Then


Else
MsgBox "Incorrect password"
End If
End If
End If
End If

Hello,
Try this links, maybe it can gives you an idea
http://www.thescripts.com/forum/thread718134.html
http://www.thescripts.com/forum/thread716387.html

Regards
Phils Ervin
Oct 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Richard M | last post by:
Can anyone please lend me a hand, I'm trying to design a cookie based password system. I have managed to do everything bar one thing that is driving me crazy. I have a MYSQL database called...
2
by: Rickard | last post by:
OK. I have the need on a form submit to pass the data to anther system that require a login and password only I want to automate the process in an server side asp file and then process the...
1
by: PerryC | last post by:
All, This should be very simple for you VB programmers, I am just a beginner and am stuck! It should be very simple... what am I not doing right? Dim PW As String PW = Me.Password If...
2
by: MLH | last post by:
What's the simplest way to allow a user of an A97 app to change password?
9
by: kwindham | last post by:
This program doesn't seem like it should be too hard, but I cannot figure it out. Here is the assignment: Password Verifier - Write a program to verify passwords, satisfying the following...
9
by: neokosmos | last post by:
This may only be tangentially related to Python, but since I am coding a password authentication system in Python, I thought I would ask here. In Linux (and presumably other *NIX systems that...
3
by: Saqib Ali | last post by:
is there a way to enforce password history verification when using Directory.Entry.Invoke("SetPassword", newPasswdStr)??? saqib http://www.full-disk-encryption.net
1
by: wideasleep | last post by:
Hello Everyone, I have to set up a electronic form for recording additions to a chemical proccess where I work. Think of this as a big kitchen but instead of food products we have chemicals. So...
1
by: fabiola1 | last post by:
I'm using Ms-access 2003.I have a table called users it has two fields called Username and password.I have created a form called security interface.where the user enters the username and password.Can...
3
by: Nelluru | last post by:
Hi, I want to open user details or some data pages in a new window after he enters the username and password. I am able to open in a new window but the problem is that i am not able to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.