473,479 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How can I Validate a User entered the Correct Password?

2 New Member
I want to verify the password field on my login screen is an exact match to the one in the table (see example).

Example:
Xray123 (form entry) = Xray123 (users table) Accepted
xray123 (form entry) = Xray123 (users table) Rejected

I hope this isn't too confusing. I am relatively new with VBA and trying to learn the best that I can. I have created basic login forms but I have always disliked not knowing a way to implement password requirements.

Note: Using Access 2016

Appreciate the assistance!
Oct 10 '18 #1
4 1510
twinnyfo
3,653 Recognized Expert Moderator Specialist
tjb0205,

Welcome to Bytes!

You really have two, very distinct and very different questions here. I will split this one thread into two threads, so folks who have questions more similar to one or the other will be able to find them.

This might also help you focus your efforts on one problem at a time--even though these issues are related.
Oct 10 '18 #2
twinnyfo
3,653 Recognized Expert Moderator Specialist
One reliable way to compare values as you have described is to use the StrComp() Function, using the vbCompareMethod parameter of vbBinaryCompare.

You say you are relatively new to VBA, and that's fine. However, we typically don't build the solution for you. We will expect you to have something started that we can troubleshoot with you and help guide you toward a viable solution.

Hope this hepps!
Oct 10 '18 #3
Rabbit
12,516 Recognized Expert Moderator MVP
Security 101, don't store passwords, store hashes instead, preferably with a nonce. But if you must store a password, encrypt the value or encrypt the entire database.

The situations where you need to store an actual password instead of a hash is very limited. So probably just do the former.
Oct 10 '18 #4
NeoPa
32,556 Recognized Expert Moderator MVP
Where possible don't use passwords at all. IDs and passwords are the first and most obvious approach, but they're generally not a very clever way to handle security when you can use a system that's already there and available to you.

Most PCs nowadays use an account either on the PC itself or, more usually, on a domain of some sort. Retrieve User ID allows you to determine who the already-authenticated user is so you don't need to worry about the authentication yourself.

This is doubly beneficial as creating an easily cracked database of passwords can have serious consequences both for the users and for you as the developer responsible.

Not pretty. Don't touch it unless you absolutely have to - which is extremely rare nowadays.
Oct 16 '18 #5

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

Similar topics

4
2218
by: Bryan Harrington | last post by:
Hello.. I'm trying to come up with a good way to have password requirements (i.e., length, Upper/Lower case mix, x number of Alpha, x number of numeric, etc.) configurable by installed site. The...
6
1238
by: David C. Holley | last post by:
Any thoughts on requirements for a password? I've been thinking about the following... Minimum six characters Must contain at least 1 number and at least 1 letter Cannot contain the user's...
3
14481
by: arktikturtle | last post by:
Hi! I'm looking for a way to validate a password within PL/SQL. I want to write CREATE PROCEDURE change_password(old_password IN VARCHAR2) IS BEGIN -- check if old_password is correct... but...
1
1516
by: Doron | last post by:
is there a setting that will ebnable uniform extent allocation upon creation of index/table by default ? if there isn't any default setting can you code it in? thanks, Doron
1
4518
by: znadeem | last post by:
Hi, I am new to JavaScript and I am trying to control New Password fields. These fields are not allowed to except any symbols, especially @ / \. The current code I've is not working at all. Could...
1
1542
by: JIM.H. | last post by:
I have a password field in my login page (ASP.NET 1.1), how can I validate password based on at least 6 characters, one number, and one capital letter.
12
17573
by: adzir | last post by:
Hi, I need to validate password keyed in by the system users so that the password will contain only letters and numbers plus at least one capital letter. Exclude these symbols , < ? / * ( ) &...
1
1128
by: anco85 | last post by:
Hi. Im a total access and VB noob and require your much appreciated help. I have a table that list all the vehicles in our company. I created a form to view this information much easier with a...
1
2453
by: Peterwkc | last post by:
hello all expert database administrator, i truly new to access. I want to develop a website where the password and re-enter password must be same. How to i validate this in access or i need ti...
7
1860
vikas1111
by: vikas1111 | last post by:
Hi All I Want to validate password,, the condition is that first 2 letters must be numbers and remaining 4 must be alphabets..How can i solve this ????
0
7019
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
7067
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6719
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...
1
4757
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...
0
4463
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2980
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2970
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
555
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.