Solved

I need more info on login/password file

Posted on 1998-11-05
3
133 Views
Last Modified: 2010-04-30
I have another question concerning my previous query on creating a login/password file. As I'm only a beginner, I would appreciate if anybody could answer this in simple coding.

I need to create a program that will:

* allow the user to enter a login and password
* check the login against a list of valid logins
* if the login is invalid, then display an error message and  allow re-entry
* if the login is valid, then check password
* if the password is invalid, then display a error message and allow re-entry.
* if password is valid, then display a message indicating success.

Note: two arrays should be used to store valid logins and passwords.

I would really appreciate any help on this question.
0
Comment
Question by:wdw1971
  • 2
3 Comments
 

Expert Comment

by:HOIMEI
ID: 1443268
Hi wdw1971,

   I have not see your previous query. I guess that you have add a login in dialog(built-in) from VB. (Select login dialog when you add file) Right?
 
If yes, it's easy to achieve it.
(You may store an  user and password in the same array )
When user press OK(click event),  you check through the array(s) for the user name and password. If success, you can unload the form(Unload Me).
If not success, you can pop error message. This will not unload the form.
Hope this help
0
 

Author Comment

by:wdw1971
ID: 1443269
Thanks for the reply, but I want to know how to use two arrays, as oppose to using one to store logins/passwords.


0
 

Accepted Solution

by:
HOIMEI earned 50 total points
ID: 1443270
Hi wdw1971,

  I think you should get all the user name and password at one query. And then assign it to the arrays sequentially so that the
password of the user in array 2 should have the same index of user name in array 1
You just search through the first array to check user name if not find then prompt error and then "exit sub"-- (skip the remaining parts")

If you find if you should store the index of it and then check the password in stored in array 2. If not match then prompt error.


0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now