?
Solved

check for a password in a database

Posted on 2003-03-26
6
Medium Priority
?
154 Views
Last Modified: 2013-12-25
How do I set it so that when i check for a password in a database it search's the entire columb?  I was thinking about if there was like a automatic .movenext file or something, but that only works if the user keeps on clicking Login until they get to the actual record.
0
Comment
Question by:TigerC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 

Author Comment

by:TigerC
ID: 8209051
Anybody?
0
 
LVL 3

Expert Comment

by:OblivionSY
ID: 8209134
is this a password for the DB or for another program (so the DB contains a list of users and their passwords?)
0
 

Author Comment

by:TigerC
ID: 8209223
it is for a DB..Access, and yes
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:TigerC
ID: 8209230
I'm also curious on how i would set it so that if i press a command button then a given text box will output the greatest number of alike value's...
like if i had a Columb named Animals
and under animals i had
cows
cows
horse
cat
then the value would output cows ->2 because cows is the most common....
0
 
LVL 3

Accepted Solution

by:
OblivionSY earned 150 total points
ID: 8209728
Its an SQL Command like..

SELECT top 1 Animal, Count(Animal) AS CountOfAnimal
FROM table1
GROUP BY Animal
ORDER BY Count(Animal) DESC;

This will pick out the animal with the most occurencies, if there are two animals with equal occurencies then both are returned. (just tested that in SQL)


I would suggest when asking the user to enter their name and password you check their name first, make sure there is an entry in the DB

"SELECT UserName FROM Users WHERE UserName = " & txtUserName.text

If something is found then the user exists.

Then get the password associated with that name,

"SELECT Password FROM Users WHERE UserName = " & txtUserName.text

then compare the result from that querry to what the user has entered, if it matches then ok, if not invlid pass

Is this the kind of thing you have in mind? pls clarify if I have missunderstood
0
 

Author Comment

by:TigerC
ID: 8220672
if you could help me on having the visual basic program take input from the user as a login and a password from a database and be able to add users and take away users and have the login search for them from the entire list i would greatly appreciate and and give you some more points..Thanks
email is Canadakicksass_@hotmail.com
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month9 days, 23 hours left to enroll

762 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