473,406 Members | 2,619 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.

VBA code for forgotten password in ms access07

I have created login form for my database and I want to add button forgot password to reset password. I already create register form to add user with two security questions with answers and is saved in trousers. On click of forgot password button opens form having txtbox for user name and submit button. In which after entering exiting user name and click button want to show subform with security questions for current user and after giving correct answer want to show another subform for change password having new password and confirm password fields with OK button. So I want to write code for that ,please help and suggest any code for that .Thanks in advanced.
Jun 4 '17 #1
1 1577
zmbd
5,501 Expert Mod 4TB
sachuchem22
- You have the first step in this process - stating the goal.

+ What I would do from here is flow chart this process, yes, I know, it's old school; however, what you want to do has several steps and these need to be in logical order. I prefer N-S type charts:
Wiki: Nassi-Shneiderman

Here's a PDF with a bit of a tutorial on N-S diagrams
UMD.EDU: NASSI-SHNEIDERMAN CHARTS AN ALTERNATIVE TO FLOWCHARTS FOR DESIGN

Hopefully once you have your logic charted out you can then start the process of writing code.

Once you have your basic code created, post it back here and we'll be glad to help.

My initial thought here would be to use the same concept as one uses for cascading form filtering:
home > topics > microsoft access / vba > insights > cascaded form filtering
Such that your user clicks on the recovery button the recovery form opens
TextBox 1: User Id Entry
TextBox 2:
Enabled = false
Control source updates after the user id control updates to show your first recovery question
TextBox 3: User data entry
TextBox 4:
Enabled = false
Control source updates after the user id control updates to show your second recovery question
TextBox 5: User data entry
Command button: Use this to submit the answers for comparison. Simple recordset search or even just the DLOOKUP() against the records containing your user's recovery information.

>> MY CAUTION HERE <<
1) Access is NOT secure. HARD-STOP - any sensitive information needs to be encrypted.

2) You should consider using something like one of the following concepts to store ALL of the user id's, user passwords, and user responses to the security questions
+ home > topics > microsoft access / vba > insights > generate secure user passwords using the md5 hash class module (MD5 isn't considered the best hash now; however, IMHO, for simple validations of non-sensitive information it is still reasonable
+ home > topics > microsoft access / vba > insights > sha2 cryptographic hash algorithm for vba and vbscript
This is the hash I use for my database user names and passwords along with what is known as a salt value.
+ home > topics > microsoft access / vba > insights > aes encryption algorithm for vba and vbscript

+ home > topics > microsoft access / vba > insights > rc4 encryption algorithm for vba and vbscript

> I work in a secured environment so my recovery method is to create a record in at table that is used to record the user ID and the primary key is set to datatype(autonumber(Replication ID)
All of my users have secured internal email so I generate an email with the new primary key, send it to them. Once they enter the sent value I look it up in the table, record the date and time, and then allow a reset of the password.
There is also an email sent to myself and a supervisor behind the scenes so one of us follows up with that user to verify the password reset.
Jun 17 '17 #2

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

Similar topics

1
by: Alfred E. Newman | last post by:
I want to enable visitors who have forgotten their password to request a new one. I have seen that some sites simply require users to enter their e-mail address. Then the server-side logic sends...
8
by: Noel Volin | last post by:
Anyone who can help here is much appreciated. I am trying to programmatically log onto a website. I am using the code provided in VS for the AuthenticationManager Class example (...
8
by: Katash | last post by:
Hello, I am new to PHP and am working on a login system for my site, currently supplied passwords are passed to MySQL and stored as md5 hashes, my question is :- seeing as md5 is 1 way only what...
3
Bhanu Murthy
by: Bhanu Murthy | last post by:
I shall be grateful if any body guide me to know where the password is stored in my database. I designed long back., now I have forgotten. Lot of data is there. People are using for the past 5...
1
by: Andrew Murray | last post by:
I'm a novice at coding and cannot get the script below to work I'm receiving an Error 500 in the web browser when trying to run this script. The site is www.murraywebs.com and the link is...
3
by: tcsvikr | last post by:
Hi, I'm a newbie in c++...Can anyone provide me with the C++ code for entering the password...It should be in this way.. The user enters the password but only *'s should be displayed...Assume that...
9
by: twomt | last post by:
Hello, are there any tutorials/guides out there that explain how to handle this subject? I was thinking of having a member enter his username and email, after which I then email him a new...
2
by: Dan2kx | last post by:
Good aft, I have a question regarding BE security, as i am sure most of you are aware, you can get into the BE data by linking importing, unless there is a DB password, i wonder if i could code...
3
by: abwagen | last post by:
My wife just forgot the password for the iTunes backup file. She already tried her best to remember all the password combinations but still no luck. Is there any other way to unlock the password or...
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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
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.