My first post was not meant to be a cure all to solve your problem, it was meant to show you the logic behind doing something like this.
If that is the select statement you are using, you can do something like this: SELECT Count([password]) from table where login = '" & txtLogin.Text &"'"
And then use ExecuteScalar() to execute the query against your database and, by doing this, it will return you the value of Count. If that value is 0 you know that an invalid login was provided, else it was correct.
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========