Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I should create a "Valid" button which once inserted the password inside the cell goes to verify that the password is equivalent to the one already inserted in another table.

Example:

Users table
User A 12345
User B 6789
User C 4785

Hours Mask

User A 8 hours 12345 [VALID] (Right password? Yes, proceed to insert the record. Wrong password? Error.)


(I'm working on Access 2007-2016)

What I have tried:

Honestly, I tried in vain, since I do not understand how to compare the two records.
I tried with VBA ( Ithink, the modules) code but even if I enter the wrong password the record is added the same.
Posted
Updated 10-Dec-18 4:02am
Comments
CHill60 10-Dec-18 10:23am    
Show the VBA code you used to check the records (for now I am ignoring the fact that you should never store passwords in databases)
Atipos 11-Dec-18 11:42am    
I am aware that it is not a good thing to memorize the password in a plain text. Being a beginner with this type of security I used this method (not convenient). Thank you for the various links, I will read them carefully!

1 solution

User names and passwords are credentials for Authentication. Outside of that, the credentials are no longer needed, so in essence; the second table has no need for the password.

Q: How would I change your process?
A: Validate the credentials against "Table A", and if authentication succeeds, insert the new record into "Table B"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900