login

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

im writing an application that requires a user to login with username and
password and the system would check it again the access database. i'm also
using oledb connection to connect to the database and i'm not getting any
rows back where i do a select statement to check the username and password.

"select * from user where username = '" & txtusername.text & "' and password
= '" & txtpassword.text & "'"
 
Hi Herb,

To make sure your connection is working, can you read other tables?

Regards,

--
Greg Low [MVP]
MSDE Manager SQL Tools
www.whitebearconsulting.com


PS: Can I suggest you also take a look at articles on sql injection attacks?
The code you are writing is very likely to suffer from these.
 
Hi,

First off you should encrypt a password before you save it. Second
the reason you are not returning any rows is that either the password or
username is wrong.

http://msdn.microsoft.com/msdnmag/issues/03/11/protectyourdata/default.aspx

Ken
----------------------
im writing an application that requires a user to login with username and
password and the system would check it again the access database. i'm also
using oledb connection to connect to the database and i'm not getting any
rows back where i do a select statement to check the username and password.

"select * from user where username = '" & txtusername.text & "' and password
= '" & txtpassword.text & "'"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top