29.08.2014 - You have some extra spaces in the line. Query = "select * from user where username= ' " & tbxUsername.Text & "' and password= .