hi i am using vbexpress as front end on a msaccess database. I have created a user name and password screen in vb which will authanticate users to my msacess data base via vbexpress.
Can anyone please help me in what will be the easily way to achieve this and where should I keep my user name and password to compare.
Some codes are also appreciated.

password
cmenge
Here's a little bit more for your consideration:
SysUsers
written from memory..... We have collected the username and passwword
End Function
Hows that
This is a gross simplification because I also had "Evasion" as part of the login scheme. If a user failed to log in three time within a rolling interval, the application hid for about 5 minutes as a security enhancement.
96RT10
Dim myQuery As String = "Select [Pword]From Table1 WHERE [Uname]='" + textbox1.text + "'"
Dim myConn1 As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=The file etc.")
Dim myCommand1 As OleDbCommand = New OleDbCommand(myquery1, myConn1)
myConn1.Open()
Dim myReader1 As OleDbDataReader = myCommand1.ExecuteReader(CommandBehavior.CloseConnection)
myReader1.Read()
if myReader1.GetString(0) = textbox2.text then
msgbox("huzah, you've entered the system")
else
msgbox("mm, you've entered some fishy info")
end if
Brennan
Billy Anders - MSFT
Usually, I talk about encryption... had I done that...
We would not have been treated to you and your incredibly charming soapbox.
I love the way you do that !
Merdon
Write a query which takes password and user name and verifies it in the database and returns true or false if a match is found on a table in the database. (Simple SQL Query)
Simply call this access query using the entered username and password and take action depending upon the result.
anarbek
I bet you're really BonJovi
Sundar Rangharajan
I'll add that you need to add ENCRYPTION TO THE PASSWORD.
I'll say it again, because theres' something very important you need to do and that is ADD ENCRYPTION TO THE PASSWORD!. That's ENCRYPTION!
You don't need to have a reversable encryption, just a one way hash is the best way. .NET Makes it ever so easy to create a nice bit of hash with salt.
Never, ever, ever, ever write a program which uses stored passwords in this way, never store the passwords as straight plain text.
Here's why:
I'll say that it's so easy to add one-way encryption that there's absolutely no excuse not to use it.
(I know, Renee that you were just showing an example...
...)