Click here to Skip to main content
15,907,149 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i had created 1 log in form..
i want to check that is the entered id n password is match with the id n password which stored in data base ms access
if it is then it vll show the next form else it print msg box
so my que is how to match the id n password from back end?
Posted
Updated 17-Sep-11 18:09pm
v2
Comments
Pradeep Shukla 17-Sep-11 23:47pm    
Please be specific with your question..are you trying to find duplicate record before entering them in the DB?
Upasana gor 18-Sep-11 0:06am    
sorry sorryy
yeah i want to retrive data from the ms acceess
ex. i had created 1 log in form and i want to check that is entred id n password is match with the table id n password which r stored in ms access

You need to use a query something like this to check if any match is found or not:
I assume you know basics of connecting to Db and using ADO.Net.

SELECT COUNT (*) FROM [signin] WHERE username='" + txtusername.Text + "' AND password='" + txtpassword.Text + "'")


There was a post similar to what you are looking for, here it is:
http://www.codeproject.com/Answers/129712/Login-check-database-if-user-exists.aspx#answer1[^]
 
Share this answer
 
The other basic connection method commonly used is OBDC.
 
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